home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / MW MPW Binaries 1.1.1a2 / mwcPPC / MWCIncludes / Files.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-31  |  71.8 KB  |  2,580 lines  |  [TEXT/MMCC]

  1. /*
  2.     File:        Files.h
  3.  
  4.     Copyright:    © 1984-1993 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef __FILES__
  13. #define __FILES__
  14.  
  15. #ifndef __TYPES__
  16. #include <Types.h>
  17. /*    #include <ConditionalMacros.h>                                */
  18. /*    #include <MixedMode.h>                                        */
  19. /*        #include <Traps.h>                                        */
  20. #endif
  21.  
  22. #ifndef __OSUTILS__
  23. #include <OSUtils.h>
  24. #endif
  25.  
  26. #ifndef __SEGLOAD__
  27. #include <SegLoad.h>
  28. #endif
  29.  
  30. enum  {
  31. /* Finder Constants */
  32.     fsAtMark                    = 0,
  33.     fOnDesk                        = 1,
  34.     fsCurPerm                    = 0,
  35.     fHasBundle                    = 8192,
  36.     fsRdPerm                    = 1,
  37.     fInvisible                    = 16384,
  38.     fTrash                        = -3,
  39.     fsWrPerm                    = 2,
  40.     fDesktop                    = -2,
  41.     fsRdWrPerm                    = 3,
  42.     fDisk                        = 0,
  43.     fsRdWrShPerm                = 4,
  44.     fsFromStart                    = 1,
  45.     fsFromLEOF                    = 2,
  46.     fsFromMark                    = 3,
  47.     rdVerify                    = 64,
  48.     ioDirFlg                    = 3,                            /* see IM IV-125 */
  49.     ioDirMask                    = 0x10,
  50.     fsRtParID                    = 1,
  51.     fsRtDirID                    = 2
  52. };
  53.  
  54. enum  {
  55. /* CatSearch SearchBits Constants */
  56.     fsSBPartialName                = 1,
  57.     fsSBFullName                = 2,
  58.     fsSBFlAttrib                = 4,
  59.     fsSBFlFndrInfo                = 8,
  60.     fsSBFlLgLen                    = 32,
  61.     fsSBFlPyLen                    = 64,
  62.     fsSBFlRLgLen                = 128,
  63.     fsSBFlRPyLen                = 256,
  64.     fsSBFlCrDat                    = 512,
  65.     fsSBFlMdDat                    = 1024,
  66.     fsSBFlBkDat                    = 2048,
  67.     fsSBFlXFndrInfo                = 4096,
  68.     fsSBFlParID                    = 8192,
  69.     fsSBNegate                    = 16384,
  70.     fsSBDrUsrWds                = 8,
  71.     fsSBDrNmFls                    = 16,
  72.     fsSBDrCrDat                    = 512,
  73.     fsSBDrMdDat                    = 1024,
  74.     fsSBDrBkDat                    = 2048,
  75.     fsSBDrFndrInfo                = 4096
  76. };
  77.  
  78. enum  {
  79.     fsSBDrParID                    = 8192,
  80. /* vMAttrib (GetVolParms) bit position constants */
  81.     bLimitFCBs                    = 31,
  82.     bLocalWList                    = 30,
  83.     bNoMiniFndr                    = 29,
  84.     bNoVNEdit                    = 28,
  85.     bNoLclSync                    = 27,
  86.     bTrshOffLine                = 26,
  87.     bNoSwitchTo                    = 25,
  88.     bNoDeskItems                = 20,
  89.     bNoBootBlks                    = 19,
  90.     bAccessCntl                    = 18,
  91.     bNoSysDir                    = 17,
  92.     bHasExtFSVol                = 16,
  93.     bHasOpenDeny                = 15,
  94.     bHasCopyFile                = 14,
  95.     bHasMoveRename                = 13,
  96.     bHasDesktopMgr                = 12,
  97.     bHasShortName                = 11,
  98.     bHasFolderLock                = 10,
  99.     bHasPersonalAccessPrivileges = 9
  100. };
  101.  
  102. enum  {
  103.     bHasUserGroupList            = 8,
  104.     bHasCatSearch                = 7,
  105.     bHasFileIDs                    = 6,
  106.     bHasBTreeMgr                = 5,
  107.     bHasBlankAccessPrivileges    = 4,
  108. /* Desktop Database icon Constants */
  109.     kLargeIcon                    = 1,
  110.     kLarge4BitIcon                = 2,
  111.     kLarge8BitIcon                = 3,
  112.     kSmallIcon                    = 4,
  113.     kSmall4BitIcon                = 5,
  114.     kSmall8BitIcon                = 6,
  115.     kLargeIconSize                = 256,
  116.     kLarge4BitIconSize            = 512,
  117.     kLarge8BitIconSize            = 1024,
  118.     kSmallIconSize                = 64,
  119.     kSmall4BitIconSize            = 128,
  120.     kSmall8BitIconSize            = 256,
  121. /* Foreign Privilege Model Identifiers */
  122.     fsUnixPriv                    = 1,
  123. /* Version Release Stage Codes */
  124.     developStage                = 0x20,
  125.     alphaStage                    = 0x40
  126. };
  127.  
  128. enum  {
  129.     betaStage                    = 0x60,
  130.     finalStage                    = 0x80,
  131. /* Authentication Constants */
  132.     kNoUserAuthentication        = 1,
  133.     kPassword                    = 2,
  134.     kEncryptPassword            = 3,
  135.     kTwoWayEncryptPassword        = 6
  136. };
  137.  
  138. enum  {
  139.     hFileInfo,
  140.     dirInfo
  141. };
  142.  
  143. typedef unsigned char CInfoType;
  144.  
  145. enum  {
  146. /* mapping codes (ioObjType) for MapName & MapID */
  147.     kOwnerID2Name                = 1,
  148.     kGroupID2Name                = 2,
  149.     kOwnerName2ID                = 3,
  150.     kGroupName2ID                = 4,
  151. /* types of oj object to be returned (ioObjType) for _GetUGEntry */
  152.     kReturnNextUser                = 1,
  153.     kReturnNextGroup            = 2,
  154.     kReturnNextUG                = 3
  155. };
  156.  
  157. #if defined(powerc) || defined (__powerc)
  158. #pragma options align=mac68k
  159. #endif
  160. struct FInfo {
  161.     OSType                        fdType;                            /*the type of the file*/
  162.     OSType                        fdCreator;                        /*file's creator*/
  163.     unsigned short                fdFlags;                        /*flags ex. hasbundle,invisible,locked, etc.*/
  164.     Point                        fdLocation;                        /*file's location in folder*/
  165.     short                        fdFldr;                            /*folder containing file*/
  166. };
  167. #if defined(powerc) || defined(__powerc)
  168. #pragma options align=reset
  169. #endif
  170.  
  171. typedef struct FInfo FInfo;
  172.  
  173. #if defined(powerc) || defined (__powerc)
  174. #pragma options align=mac68k
  175. #endif
  176. struct FXInfo {
  177.     short                        fdIconID;                        /*Icon ID*/
  178.     short                        fdUnused[3];                    /*unused but reserved 6 bytes*/
  179.     char                        fdScript;                        /*Script flag and number*/
  180.     char                        fdXFlags;                        /*More flag bits*/
  181.     short                        fdComment;                        /*Comment ID*/
  182.     long                        fdPutAway;                        /*Home Dir ID*/
  183. };
  184. #if defined(powerc) || defined(__powerc)
  185. #pragma options align=reset
  186. #endif
  187.  
  188. typedef struct FXInfo FXInfo;
  189.  
  190. #if defined(powerc) || defined (__powerc)
  191. #pragma options align=mac68k
  192. #endif
  193. struct DInfo {
  194.     Rect                        frRect;                            /*folder rect*/
  195.     unsigned short                frFlags;                        /*Flags*/
  196.     Point                        frLocation;                        /*folder location*/
  197.     short                        frView;                            /*folder view*/
  198. };
  199. #if defined(powerc) || defined(__powerc)
  200. #pragma options align=reset
  201. #endif
  202.  
  203. typedef struct DInfo DInfo;
  204.  
  205. #if defined(powerc) || defined (__powerc)
  206. #pragma options align=mac68k
  207. #endif
  208. struct DXInfo {
  209.     Point                        frScroll;                        /*scroll position*/
  210.     long                        frOpenChain;                    /*DirID chain of open folders*/
  211.     char                        frScript;                        /*Script flag and number*/
  212.     char                        frXFlags;                        /*More flag bits*/
  213.     short                        frComment;                        /*comment*/
  214.     long                        frPutAway;                        /*DirID*/
  215. };
  216. #if defined(powerc) || defined(__powerc)
  217. #pragma options align=reset
  218. #endif
  219.  
  220. typedef struct DXInfo DXInfo;
  221.  
  222. #if defined(powerc) || defined (__powerc)
  223. #pragma options align=mac68k
  224. #endif
  225. struct GetVolParmsInfoBuffer {
  226.     short                        vMVersion;                        /*version number*/
  227.     long                        vMAttrib;                        /*bit vector of attributes (see vMAttrib constants)*/
  228.     Handle                        vMLocalHand;                    /*handle to private data*/
  229.     long                        vMServerAdr;                    /*AppleTalk server address or zero*/
  230.     long                        vMVolumeGrade;                    /*approx. speed rating or zero if unrated*/
  231.     short                        vMForeignPrivID;                /*foreign privilege model supported or zero if none*/
  232. };
  233. #if defined(powerc) || defined(__powerc)
  234. #pragma options align=reset
  235. #endif
  236.  
  237. typedef struct GetVolParmsInfoBuffer GetVolParmsInfoBuffer;
  238.  
  239. typedef union ParamBlockRec ParamBlockRec, *ParmBlkPtr;
  240.  
  241.  
  242. /*
  243.     IOCompletionProcs cannot be written in or called from a high-level 
  244.     language without the help of mixed mode or assembly glue because they 
  245.     use the following parameter-passing convention:
  246.  
  247.     typedef pascal void (*IOCompletionProcPtr)(ParmBlkPtr paramBlock);
  248.  
  249.         In:
  250.             =>     paramBlock                A0.L
  251.         Out:
  252.             none
  253. */
  254.  
  255. enum  {
  256.     uppIOCompletionProcInfo        = kRegisterBased|REGISTER_ROUTINE_PARAMETER(1,kRegisterA0,kFourByteCode)
  257. };
  258.  
  259. #if USESROUTINEDESCRIPTORS
  260. typedef pascal void (*IOCompletionProcPtr)(ParmBlkPtr paramBlock);
  261.  
  262. typedef UniversalProcPtr IOCompletionUPP;
  263.  
  264. #define CallIOCompletionProc(userRoutine, paramBlock)  \
  265.     CallUniversalProc((UniversalProcPtr)(userRoutine), uppIOCompletionProcInfo, (paramBlock))
  266.  
  267. #define NewIOCompletionProc(userRoutine)  \
  268.     (IOCompletionUPP) NewRoutineDescriptor((ProcPtr)(userRoutine),  \
  269.     uppIOCompletionProcInfo, GetCurrentISA())
  270.  
  271. #else
  272. typedef ProcPtr IOCompletionUPP;
  273.  
  274. #define NewIOCompletionProc(userRoutine)  \
  275.     (IOCompletionUPP)((userRoutine))
  276.  
  277. #endif
  278.  
  279. #define ParamBlockHeader         \
  280.     QElemPtr qLink;             \
  281.     short qType;                 \
  282.     short ioTrap;                 \
  283.     Ptr ioCmdAddr;                 \
  284.     IOCompletionUPP ioCompletion;     \
  285.     OSErr ioResult;             \
  286.     StringPtr ioNamePtr;         \
  287.     short ioVRefNum;
  288.  
  289. #if defined(powerc) || defined (__powerc)
  290. #pragma options align=mac68k
  291. #endif
  292. struct IOParam {
  293.     QElemPtr                    qLink;
  294.     short                        qType;
  295.     short                        ioTrap;
  296.     Ptr                            ioCmdAddr;
  297.     IOCompletionUPP                ioCompletion;
  298.     OSErr                        ioResult;
  299.     StringPtr                    ioNamePtr;
  300.     short                        ioVRefNum;
  301.     short                        ioRefNum;                        /*refNum for I/O operation*/
  302.     char                        ioVersNum;                        /*version number*/
  303.     char                        ioPermssn;                        /*Open: permissions (byte)*/
  304.     Ptr                            ioMisc;                            /*Rename: new name (GetEOF,SetEOF: logical end of file) (Open: optional ptr to buffer) (SetFileType: new type)*/
  305.     Ptr                            ioBuffer;                        /*data buffer Ptr*/
  306.     long                        ioReqCount;                        /*requested byte count; also = ioNewDirID*/
  307.     long                        ioActCount;                        /*actual byte count completed*/
  308.     short                        ioPosMode;                        /*initial file positioning*/
  309.     long                        ioPosOffset;                    /*file position offset*/
  310. };
  311. #if defined(powerc) || defined(__powerc)
  312. #pragma options align=reset
  313. #endif
  314.  
  315. typedef struct IOParam IOParam;
  316.  
  317. #if defined(powerc) || defined (__powerc)
  318. #pragma options align=mac68k
  319. #endif
  320. struct FileParam {
  321.     QElemPtr                    qLink;
  322.     short                        qType;
  323.     short                        ioTrap;
  324.     Ptr                            ioCmdAddr;
  325.     IOCompletionUPP                ioCompletion;
  326.     OSErr                        ioResult;
  327.     StringPtr                    ioNamePtr;
  328.     short                        ioVRefNum;
  329.     short                        ioFRefNum;                        /*reference number*/
  330.     char                        ioFVersNum;                        /*version number*/
  331.     char                        filler1;
  332.     short                        ioFDirIndex;                    /*GetFInfo directory index*/
  333.     unsigned char                ioFlAttrib;                        /*GetFInfo: in-use bit=7, lock bit=0*/
  334.     unsigned char                ioFlVersNum;                    /*file version number*/
  335.     FInfo                        ioFlFndrInfo;                    /*user info*/
  336.     unsigned long                ioFlNum;                        /*GetFInfo: file number; TF- ioDirID*/
  337.     unsigned short                ioFlStBlk;                        /*start file block (0 if none)*/
  338.     long                        ioFlLgLen;                        /*logical length (EOF)*/
  339.     long                        ioFlPyLen;                        /*physical length*/
  340.     unsigned short                ioFlRStBlk;                        /*start block rsrc fork*/
  341.     long                        ioFlRLgLen;                        /*file logical length rsrc fork*/
  342.     long                        ioFlRPyLen;                        /*file physical length rsrc fork*/
  343.     unsigned long                ioFlCrDat;                        /*file creation date& time (32 bits in secs)*/
  344.     unsigned long                ioFlMdDat;                        /*last modified date and time*/
  345. };
  346. #if defined(powerc) || defined(__powerc)
  347. #pragma options align=reset
  348. #endif
  349.  
  350. typedef struct FileParam FileParam;
  351.  
  352. #if defined(powerc) || defined (__powerc)
  353. #pragma options align=mac68k
  354. #endif
  355. struct VolumeParam {
  356.     QElemPtr                    qLink;
  357.     short                        qType;
  358.     short                        ioTrap;
  359.     Ptr                            ioCmdAddr;
  360.     IOCompletionUPP                ioCompletion;
  361.     OSErr                        ioResult;
  362.     StringPtr                    ioNamePtr;
  363.     short                        ioVRefNum;
  364.     long                        filler2;
  365.     short                        ioVolIndex;                        /*volume index number*/
  366.     unsigned long                ioVCrDate;                        /*creation date and time*/
  367.     unsigned long                ioVLsBkUp;                        /*last backup date and time*/
  368.     unsigned short                ioVAtrb;                        /*volume attrib*/
  369.     unsigned short                ioVNmFls;                        /*number of files in directory*/
  370.     unsigned short                ioVDirSt;                        /*start block of file directory*/
  371.     short                        ioVBlLn;                        /*GetVolInfo: length of dir in blocks*/
  372.     unsigned short                ioVNmAlBlks;                    /*GetVolInfo: num blks (of alloc size)*/
  373.     long                        ioVAlBlkSiz;                    /*GetVolInfo: alloc blk byte size*/
  374.     long                        ioVClpSiz;                        /*GetVolInfo: bytes to allocate at a time*/
  375.     unsigned short                ioAlBlSt;                        /*starting disk(512-byte) block in block map*/
  376.     unsigned long                ioVNxtFNum;                        /*GetVolInfo: next free file number*/
  377.     unsigned short                ioVFrBlk;                        /*GetVolInfo: # free alloc blks for this vol*/
  378. };
  379. #if defined(powerc) || defined(__powerc)
  380. #pragma options align=reset
  381. #endif
  382.  
  383. typedef struct VolumeParam VolumeParam;
  384.  
  385. #if defined(powerc) || defined (__powerc)
  386. #pragma options align=mac68k
  387. #endif
  388. struct CntrlParam {
  389.     QElem                        *qLink;                            /*queue link in header*/
  390.     short                        qType;                            /*type byte for safety check*/
  391.     short                        ioTrap;                            /*FS: the Trap*/
  392.     Ptr                            ioCmdAddr;                        /*FS: address to dispatch to*/
  393.     IOCompletionUPP                ioCompletion;                    /*completion routine addr (0 for synch calls)*/
  394.     OSErr                        ioResult;                        /*result code*/
  395.     StringPtr                    ioNamePtr;                        /*ptr to Vol:FileName string*/
  396.     short                        ioVRefNum;                        /*volume refnum (DrvNum for Eject and MountVol)*/
  397.     short                        ioCRefNum;                        /*refNum for I/O operation*/
  398.     short                        csCode;                            /*word for control status code*/
  399.     short                        csParam[11];                    /*operation-defined parameters*/
  400. };
  401. #if defined(powerc) || defined(__powerc)
  402. #pragma options align=reset
  403. #endif
  404.  
  405. typedef struct CntrlParam CntrlParam;
  406.  
  407. #if defined(powerc) || defined (__powerc)
  408. #pragma options align=mac68k
  409. #endif
  410. struct SlotDevParam {
  411.     QElemPtr                    qLink;
  412.     short                        qType;
  413.     short                        ioTrap;
  414.     Ptr                            ioCmdAddr;
  415.     IOCompletionUPP                ioCompletion;
  416.     OSErr                        ioResult;
  417.     StringPtr                    ioNamePtr;
  418.     short                        ioVRefNum;
  419.     short                        ioRefNum;
  420.     char                        ioVersNum;
  421.     char                        ioPermssn;
  422.     Ptr                            ioMix;
  423.     short                        ioFlags;
  424.     char                        ioSlot;
  425.     char                        ioID;
  426. };
  427. #if defined(powerc) || defined(__powerc)
  428. #pragma options align=reset
  429. #endif
  430.  
  431. typedef struct SlotDevParam SlotDevParam;
  432.  
  433. #if defined(powerc) || defined (__powerc)
  434. #pragma options align=mac68k
  435. #endif
  436. struct MultiDevParam {
  437.     QElemPtr                    qLink;
  438.     short                        qType;
  439.     short                        ioTrap;
  440.     Ptr                            ioCmdAddr;
  441.     IOCompletionUPP                ioCompletion;
  442.     OSErr                        ioResult;
  443.     StringPtr                    ioNamePtr;
  444.     short                        ioVRefNum;
  445.     short                        ioRefNum;
  446.     char                        ioVersNum;
  447.     char                        ioPermssn;
  448.     Ptr                            ioMix;
  449.     short                        ioFlags;
  450.     Ptr                            ioSEBlkPtr;
  451. };
  452. #if defined(powerc) || defined(__powerc)
  453. #pragma options align=reset
  454. #endif
  455.  
  456. typedef struct MultiDevParam MultiDevParam;
  457.  
  458. #if defined(powerc) || defined (__powerc)
  459. #pragma options align=mac68k
  460. #endif
  461. union ParamBlockRec {
  462.     IOParam                        ioParam;
  463.     FileParam                    fileParam;
  464.     VolumeParam                    volumeParam;
  465.     CntrlParam                    cntrlParam;
  466.     SlotDevParam                slotDevParam;
  467.     MultiDevParam                multiDevParam;
  468. };
  469. #if defined(powerc) || defined(__powerc)
  470. #pragma options align=reset
  471. #endif
  472.  
  473. #if defined(powerc) || defined (__powerc)
  474. #pragma options align=mac68k
  475. #endif
  476. struct HFileInfo {
  477.     QElemPtr                    qLink;
  478.     short                        qType;
  479.     short                        ioTrap;
  480.     Ptr                            ioCmdAddr;
  481.     IOCompletionUPP                ioCompletion;
  482.     OSErr                        ioResult;
  483.     StringPtr                    ioNamePtr;
  484.     short                        ioVRefNum;
  485.     short                        ioFRefNum;
  486.     char                        ioFVersNum;
  487.     char                        filler1;
  488.     short                        ioFDirIndex;
  489.     char                        ioFlAttrib;
  490.     char                        filler2;
  491.     FInfo                        ioFlFndrInfo;
  492.     long                        ioDirID;
  493.     unsigned short                ioFlStBlk;
  494.     long                        ioFlLgLen;
  495.     long                        ioFlPyLen;
  496.     unsigned short                ioFlRStBlk;
  497.     long                        ioFlRLgLen;
  498.     long                        ioFlRPyLen;
  499.     unsigned long                ioFlCrDat;
  500.     unsigned long                ioFlMdDat;
  501.     unsigned long                ioFlBkDat;
  502.     FXInfo                        ioFlXFndrInfo;
  503.     long                        ioFlParID;
  504.     long                        ioFlClpSiz;
  505. };
  506. #if defined(powerc) || defined(__powerc)
  507. #pragma options align=reset
  508. #endif
  509.  
  510. typedef struct HFileInfo HFileInfo;
  511.  
  512. #if defined(powerc) || defined (__powerc)
  513. #pragma options align=mac68k
  514. #endif
  515. struct DirInfo {
  516.     QElemPtr                    qLink;
  517.     short                        qType;
  518.     short                        ioTrap;
  519.     Ptr                            ioCmdAddr;
  520.     IOCompletionUPP                ioCompletion;
  521.     OSErr                        ioResult;
  522.     StringPtr                    ioNamePtr;
  523.     short                        ioVRefNum;
  524.     short                        ioFRefNum;
  525.     short                        filler1;
  526.     short                        ioFDirIndex;
  527.     char                        ioFlAttrib;
  528.     char                        filler2;
  529.     DInfo                        ioDrUsrWds;
  530.     long                        ioDrDirID;
  531.     unsigned short                ioDrNmFls;
  532.     short                        filler3[9];
  533.     unsigned long                ioDrCrDat;
  534.     unsigned long                ioDrMdDat;
  535.     unsigned long                ioDrBkDat;
  536.     DXInfo                        ioDrFndrInfo;
  537.     long                        ioDrParID;
  538. };
  539. #if defined(powerc) || defined(__powerc)
  540. #pragma options align=reset
  541. #endif
  542.  
  543. typedef struct DirInfo DirInfo;
  544.  
  545. #if defined(powerc) || defined (__powerc)
  546. #pragma options align=mac68k
  547. #endif
  548. union CInfoPBRec {
  549.     HFileInfo                    hFileInfo;
  550.     DirInfo                        dirInfo;
  551. };
  552. #if defined(powerc) || defined(__powerc)
  553. #pragma options align=reset
  554. #endif
  555.  
  556. typedef union CInfoPBRec CInfoPBRec;
  557.  
  558. typedef CInfoPBRec *CInfoPBPtr;
  559.  
  560. #if defined(powerc) || defined (__powerc)
  561. #pragma options align=mac68k
  562. #endif
  563. struct HIOParam {
  564.     QElemPtr                    qLink;
  565.     short                        qType;
  566.     short                        ioTrap;
  567.     Ptr                            ioCmdAddr;
  568.     IOCompletionUPP                ioCompletion;
  569.     OSErr                        ioResult;
  570.     StringPtr                    ioNamePtr;
  571.     short                        ioVRefNum;
  572.     short                        ioRefNum;
  573.     char                        ioVersNum;
  574.     char                        ioPermssn;
  575.     Ptr                            ioMisc;
  576.     Ptr                            ioBuffer;
  577.     long                        ioReqCount;
  578.     long                        ioActCount;
  579.     short                        ioPosMode;
  580.     long                        ioPosOffset;
  581.     short                        filler1;
  582. };
  583. #if defined(powerc) || defined(__powerc)
  584. #pragma options align=reset
  585. #endif
  586.  
  587. typedef struct HIOParam HIOParam;
  588.  
  589. #if defined(powerc) || defined (__powerc)
  590. #pragma options align=mac68k
  591. #endif
  592. struct HFileParam {
  593.     QElemPtr                    qLink;
  594.     short                        qType;
  595.     short                        ioTrap;
  596.     Ptr                            ioCmdAddr;
  597.     IOCompletionUPP                ioCompletion;
  598.     OSErr                        ioResult;
  599.     StringPtr                    ioNamePtr;
  600.     short                        ioVRefNum;
  601.     short                        ioFRefNum;
  602.     char                        ioFVersNum;
  603.     char                        filler1;
  604.     short                        ioFDirIndex;
  605.     char                        ioFlAttrib;
  606.     char                        ioFlVersNum;
  607.     FInfo                        ioFlFndrInfo;
  608.     long                        ioDirID;
  609.     unsigned short                ioFlStBlk;
  610.     long                        ioFlLgLen;
  611.     long                        ioFlPyLen;
  612.     unsigned short                ioFlRStBlk;
  613.     long                        ioFlRLgLen;
  614.     long                        ioFlRPyLen;
  615.     unsigned long                ioFlCrDat;
  616.     unsigned long                ioFlMdDat;
  617. };
  618. #if defined(powerc) || defined(__powerc)
  619. #pragma options align=reset
  620. #endif
  621.  
  622. typedef struct HFileParam HFileParam;
  623.  
  624. #if defined(powerc) || defined (__powerc)
  625. #pragma options align=mac68k
  626. #endif
  627. struct HVolumeParam {
  628.     QElemPtr                    qLink;
  629.     short                        qType;
  630.     short                        ioTrap;
  631.     Ptr                            ioCmdAddr;
  632.     IOCompletionUPP                ioCompletion;
  633.     OSErr                        ioResult;
  634.     StringPtr                    ioNamePtr;
  635.     short                        ioVRefNum;
  636.     long                        filler2;
  637.     short                        ioVolIndex;
  638.     unsigned long                ioVCrDate;
  639.     unsigned long                ioVLsMod;
  640.     short                        ioVAtrb;
  641.     unsigned short                ioVNmFls;
  642.     short                        ioVBitMap;
  643.     short                        ioAllocPtr;
  644.     unsigned short                ioVNmAlBlks;
  645.     long                        ioVAlBlkSiz;
  646.     long                        ioVClpSiz;
  647.     short                        ioAlBlSt;
  648.     long                        ioVNxtCNID;
  649.     unsigned short                ioVFrBlk;
  650.     unsigned short                ioVSigWord;
  651.     short                        ioVDrvInfo;
  652.     short                        ioVDRefNum;
  653.     short                        ioVFSID;
  654.     unsigned long                ioVBkUp;
  655.     unsigned short                ioVSeqNum;
  656.     long                        ioVWrCnt;
  657.     long                        ioVFilCnt;
  658.     long                        ioVDirCnt;
  659.     long                        ioVFndrInfo[8];
  660. };
  661. #if defined(powerc) || defined(__powerc)
  662. #pragma options align=reset
  663. #endif
  664.  
  665. typedef struct HVolumeParam HVolumeParam;
  666.  
  667. #if defined(powerc) || defined (__powerc)
  668. #pragma options align=mac68k
  669. #endif
  670. struct AccessParam {
  671.     QElemPtr                    qLink;
  672.     short                        qType;
  673.     short                        ioTrap;
  674.     Ptr                            ioCmdAddr;
  675.     IOCompletionUPP                ioCompletion;
  676.     OSErr                        ioResult;
  677.     StringPtr                    ioNamePtr;
  678.     short                        ioVRefNum;
  679.     short                        filler3;
  680.     short                        ioDenyModes;                    /*access rights data*/
  681.     short                        filler4;
  682.     char                        filler5;
  683.     char                        ioACUser;                        /*access rights for directory only*/
  684.     long                        filler6;
  685.     long                        ioACOwnerID;                    /*owner ID*/
  686.     long                        ioACGroupID;                    /*group ID*/
  687.     long                        ioACAccess;                        /*access rights*/
  688. };
  689. #if defined(powerc) || defined(__powerc)
  690. #pragma options align=reset
  691. #endif
  692.  
  693. typedef struct AccessParam AccessParam;
  694.  
  695. #if defined(powerc) || defined (__powerc)
  696. #pragma options align=mac68k
  697. #endif
  698. struct ObjParam {
  699.     QElemPtr                    qLink;
  700.     short                        qType;
  701.     short                        ioTrap;
  702.     Ptr                            ioCmdAddr;
  703.     IOCompletionUPP                ioCompletion;
  704.     OSErr                        ioResult;
  705.     StringPtr                    ioNamePtr;
  706.     short                        ioVRefNum;
  707.     short                        filler7;
  708.     short                        ioObjType;                        /*function code*/
  709.     StringPtr                    ioObjNamePtr;                    /*ptr to returned creator/group name*/
  710.     long                        ioObjID;                        /*creator/group ID*/
  711.     long                        ioReqCount;                        /*size of buffer area*/
  712.     long                        ioActCount;                        /*length of vol parms data*/
  713. };
  714. #if defined(powerc) || defined(__powerc)
  715. #pragma options align=reset
  716. #endif
  717.  
  718. typedef struct ObjParam ObjParam;
  719.  
  720. #if defined(powerc) || defined (__powerc)
  721. #pragma options align=mac68k
  722. #endif
  723. struct CopyParam {
  724.     QElemPtr                    qLink;
  725.     short                        qType;
  726.     short                        ioTrap;
  727.     Ptr                            ioCmdAddr;
  728.     IOCompletionUPP                ioCompletion;
  729.     OSErr                        ioResult;
  730.     StringPtr                    ioNamePtr;
  731.     short                        ioVRefNum;
  732.     short                        ioDstVRefNum;                    /*destination vol identifier*/
  733.     short                        filler8;
  734.     StringPtr                    ioNewName;                        /*ptr to destination pathname*/
  735.     StringPtr                    ioCopyName;                        /*ptr to optional name*/
  736.     long                        ioNewDirID;                        /*destination directory ID*/
  737.     long                        filler14;
  738.     long                        filler15;
  739.     long                        ioDirID;                        /*same as in FileParam*/
  740. };
  741. #if defined(powerc) || defined(__powerc)
  742. #pragma options align=reset
  743. #endif
  744.  
  745. typedef struct CopyParam CopyParam;
  746.  
  747. #if defined(powerc) || defined (__powerc)
  748. #pragma options align=mac68k
  749. #endif
  750. struct WDParam {
  751.     QElemPtr                    qLink;
  752.     short                        qType;
  753.     short                        ioTrap;
  754.     Ptr                            ioCmdAddr;
  755.     IOCompletionUPP                ioCompletion;
  756.     OSErr                        ioResult;
  757.     StringPtr                    ioNamePtr;
  758.     short                        ioVRefNum;
  759.     short                        filler9;
  760.     short                        ioWDIndex;
  761.     long                        ioWDProcID;
  762.     short                        ioWDVRefNum;
  763.     short                        filler10;
  764.     long                        filler11;
  765.     long                        filler12;
  766.     long                        filler13;
  767.     long                        ioWDDirID;
  768. };
  769. #if defined(powerc) || defined(__powerc)
  770. #pragma options align=reset
  771. #endif
  772.  
  773. typedef struct WDParam WDParam;
  774.  
  775. #if defined(powerc) || defined (__powerc)
  776. #pragma options align=mac68k
  777. #endif
  778. struct FIDParam {
  779.     QElemPtr                    qLink;
  780.     short                        qType;
  781.     short                        ioTrap;
  782.     Ptr                            ioCmdAddr;
  783.     IOCompletionUPP                ioCompletion;
  784.     OSErr                        ioResult;
  785.     StringPtr                    ioNamePtr;
  786.     short                        ioVRefNum;
  787.     long                        filler1;
  788.     StringPtr                    ioDestNamePtr;                    /* dest file name */
  789.     long                        filler2;
  790.     long                        ioDestDirID;                    /* dest file's directory id */
  791.     long                        filler3;
  792.     long                        filler4;
  793.     long                        ioSrcDirID;                        /* source file's directory id */
  794.     short                        filler5;
  795.     long                        ioFileID;                        /* file ID */
  796. };
  797. #if defined(powerc) || defined(__powerc)
  798. #pragma options align=reset
  799. #endif
  800.  
  801. typedef struct FIDParam FIDParam;
  802.  
  803.  
  804. /* Catalog position record */
  805.  
  806. #if defined(powerc) || defined (__powerc)
  807. #pragma options align=mac68k
  808. #endif
  809. struct CatPositionRec {
  810.     long                        initialize;
  811.     short                        priv[6];
  812. };
  813. #if defined(powerc) || defined(__powerc)
  814. #pragma options align=reset
  815. #endif
  816.  
  817. typedef struct CatPositionRec CatPositionRec;
  818.  
  819. #if defined(powerc) || defined (__powerc)
  820. #pragma options align=mac68k
  821. #endif
  822. struct FSSpec {
  823.     short                        vRefNum;
  824.     long                        parID;
  825.     Str63                        name;
  826. };
  827. #if defined(powerc) || defined(__powerc)
  828. #pragma options align=reset
  829. #endif
  830.  
  831. typedef struct FSSpec FSSpec;
  832.  
  833. typedef FSSpec *FSSpecPtr, **FSSpecHandle;
  834.  
  835.  
  836. /* pointer to array of FSSpecs */
  837.  
  838. typedef FSSpecPtr FSSpecArrayPtr;
  839.  
  840.  
  841. /* The following are structures to be filled out with the _GetVolMountInfo call
  842.  and passed back into the _VolumeMount call for external file system mounts. */
  843.  
  844.  
  845. /* the "signature" of the file system */
  846.  
  847. typedef OSType VolumeType;
  848.  
  849. #define AppleShareMediaType 'afpm'
  850.  
  851. #if defined(powerc) || defined (__powerc)
  852. #pragma options align=mac68k
  853. #endif
  854. struct VolMountInfoHeader {
  855.     short                        length;                            /* length of location data (including self) */
  856.     VolumeType                    media;                            /* type of media.  Variable length data follows */
  857. };
  858. #if defined(powerc) || defined(__powerc)
  859. #pragma options align=reset
  860. #endif
  861.  
  862. typedef struct VolMountInfoHeader VolMountInfoHeader;
  863.  
  864. typedef VolMountInfoHeader *VolMountInfoPtr;
  865.  
  866. #if defined(powerc) || defined (__powerc)
  867. #pragma options align=mac68k
  868. #endif
  869. struct AFPVolMountInfo {
  870.     short                        length;                            /* length of location data (including self) */
  871.     VolumeType                    media;                            /* type of media */
  872.     short                        flags;                            /* bits for no messages, no reconnect */
  873.     char                        nbpInterval;                    /* NBP Interval parameter (IM2, p.322) */
  874.     char                        nbpCount;                        /* NBP Interval parameter (IM2, p.322) */
  875.     short                        uamType;                        /* User Authentication Method */
  876.     short                        zoneNameOffset;                    /* short positive offset from start of struct to Zone Name */
  877.     short                        serverNameOffset;                /* offset to pascal Server Name string */
  878.     short                        volNameOffset;                    /* offset to pascal Volume Name string */
  879.     short                        userNameOffset;                    /* offset to pascal User Name string */
  880.     short                        userPasswordOffset;                /* offset to pascal User Password string */
  881.     short                        volPasswordOffset;                /* offset to pascal Volume Password string */
  882.     char                        AFPData[144];                    /* variable length data may follow */
  883. };
  884. #if defined(powerc) || defined(__powerc)
  885. #pragma options align=reset
  886. #endif
  887.  
  888. typedef struct AFPVolMountInfo AFPVolMountInfo;
  889.  
  890. typedef AFPVolMountInfo *AFPVolMountInfoPtr;
  891.  
  892. #if defined(powerc) || defined (__powerc)
  893. #pragma options align=mac68k
  894. #endif
  895. struct CSParam {
  896.     QElemPtr                    qLink;
  897.     short                        qType;
  898.     short                        ioTrap;
  899.     Ptr                            ioCmdAddr;
  900.     IOCompletionUPP                ioCompletion;
  901.     OSErr                        ioResult;
  902.     StringPtr                    ioNamePtr;
  903.     short                        ioVRefNum;
  904.     FSSpecPtr                    ioMatchPtr;                        /* match array */
  905.     long                        ioReqMatchCount;                /* maximum allowable matches */
  906.     long                        ioActMatchCount;                /* actual match count */
  907.     long                        ioSearchBits;                    /* search criteria selector */
  908.     CInfoPBPtr                    ioSearchInfo1;                    /* search values and range lower bounds */
  909.     CInfoPBPtr                    ioSearchInfo2;                    /* search values and range upper bounds */
  910.     long                        ioSearchTime;                    /* length of time to run search */
  911.     CatPositionRec                ioCatPosition;                    /* current position in the catalog */
  912.     Ptr                            ioOptBuffer;                    /* optional performance enhancement buffer */
  913.     long                        ioOptBufSize;                    /* size of buffer pointed to by ioOptBuffer */
  914. };
  915. #if defined(powerc) || defined(__powerc)
  916. #pragma options align=reset
  917. #endif
  918.  
  919. typedef struct CSParam CSParam;
  920.  
  921. typedef CSParam *CSParamPtr;
  922.  
  923. #if defined(powerc) || defined (__powerc)
  924. #pragma options align=mac68k
  925. #endif
  926. struct DTPBRec {
  927.     QElemPtr                    qLink;
  928.     short                        qType;
  929.     short                        ioTrap;
  930.     Ptr                            ioCmdAddr;
  931.     IOCompletionUPP                ioCompletion;
  932.     OSErr                        ioResult;
  933.     StringPtr                    ioNamePtr;
  934.     short                        ioVRefNum;
  935.     short                        ioDTRefNum;                        /* desktop refnum */
  936.     short                        ioIndex;
  937.     long                        ioTagInfo;
  938.     Ptr                            ioDTBuffer;
  939.     long                        ioDTReqCount;
  940.     long                        ioDTActCount;
  941.     char                        ioFiller1;
  942.     char                        ioIconType;
  943.     short                        ioFiller2;
  944.     long                        ioDirID;
  945.     OSType                        ioFileCreator;
  946.     OSType                        ioFileType;
  947.     long                        ioFiller3;
  948.     long                        ioDTLgLen;
  949.     long                        ioDTPyLen;
  950.     short                        ioFiller4[14];
  951.     long                        ioAPPLParID;
  952. };
  953. #if defined(powerc) || defined(__powerc)
  954. #pragma options align=reset
  955. #endif
  956.  
  957. typedef struct DTPBRec DTPBRec;
  958.  
  959. typedef DTPBRec *DTPBPtr;
  960.  
  961. #if defined(powerc) || defined (__powerc)
  962. #pragma options align=mac68k
  963. #endif
  964. struct ForeignPrivParam {
  965.     QElemPtr                    qLink;
  966.     short                        qType;
  967.     short                        ioTrap;
  968.     Ptr                            ioCmdAddr;
  969.     IOCompletionUPP                ioCompletion;
  970.     OSErr                        ioResult;
  971.     StringPtr                    ioNamePtr;
  972.     short                        ioVRefNum;
  973.     long                        ioFiller1;
  974.     long                        ioFiller2;
  975.     Ptr                            ioForeignPrivBuffer;
  976.     long                        ioForeignPrivActCount;
  977.     long                        ioForeignPrivReqCount;
  978.     long                        ioFiller3;
  979.     long                        ioForeignPrivDirID;
  980.     long                        ioForeignPrivInfo1;
  981.     long                        ioForeignPrivInfo2;
  982.     long                        ioForeignPrivInfo3;
  983.     long                        ioForeignPrivInfo4;
  984. };
  985. #if defined(powerc) || defined(__powerc)
  986. #pragma options align=reset
  987. #endif
  988.  
  989. typedef struct ForeignPrivParam ForeignPrivParam;
  990.  
  991. typedef ForeignPrivParam *ForeignPrivParamPtr;
  992.  
  993. #if defined(powerc) || defined (__powerc)
  994. #pragma options align=mac68k
  995. #endif
  996. union HParamBlockRec {
  997.     HIOParam                    ioParam;
  998.     HFileParam                    fileParam;
  999.     HVolumeParam                volumeParam;
  1000.     AccessParam                    accessParam;
  1001.     ObjParam                    objParam;
  1002.     CopyParam                    copyParam;
  1003.     WDParam                        wdParam;
  1004.     FIDParam                    fidParam;
  1005.     CSParam                        csParam;
  1006.     ForeignPrivParam            foreignPrivParam;
  1007. };
  1008. #if defined(powerc) || defined(__powerc)
  1009. #pragma options align=reset
  1010. #endif
  1011.  
  1012. typedef union HParamBlockRec HParamBlockRec;
  1013.  
  1014. typedef HParamBlockRec *HParmBlkPtr;
  1015.  
  1016. #if defined(powerc) || defined (__powerc)
  1017. #pragma options align=mac68k
  1018. #endif
  1019. struct CMovePBRec {
  1020.     QElemPtr                    qLink;
  1021.     short                        qType;
  1022.     short                        ioTrap;
  1023.     Ptr                            ioCmdAddr;
  1024.     IOCompletionUPP                ioCompletion;
  1025.     OSErr                        ioResult;
  1026.     StringPtr                    ioNamePtr;
  1027.     short                        ioVRefNum;
  1028.     long                        filler1;
  1029.     StringPtr                    ioNewName;
  1030.     long                        filler2;
  1031.     long                        ioNewDirID;
  1032.     long                        filler3[2];
  1033.     long                        ioDirID;
  1034. };
  1035. #if defined(powerc) || defined(__powerc)
  1036. #pragma options align=reset
  1037. #endif
  1038.  
  1039. typedef struct CMovePBRec CMovePBRec;
  1040.  
  1041. typedef CMovePBRec *CMovePBPtr;
  1042.  
  1043. #if defined(powerc) || defined (__powerc)
  1044. #pragma options align=mac68k
  1045. #endif
  1046. struct WDPBRec {
  1047.     QElemPtr                    qLink;
  1048.     short                        qType;
  1049.     short                        ioTrap;
  1050.     Ptr                            ioCmdAddr;
  1051.     IOCompletionUPP                ioCompletion;
  1052.     OSErr                        ioResult;
  1053.     StringPtr                    ioNamePtr;
  1054.     short                        ioVRefNum;
  1055.     short                        filler1;
  1056.     short                        ioWDIndex;
  1057.     long                        ioWDProcID;
  1058.     short                        ioWDVRefNum;
  1059.     short                        filler2[7];
  1060.     long                        ioWDDirID;
  1061. };
  1062. #if defined(powerc) || defined(__powerc)
  1063. #pragma options align=reset
  1064. #endif
  1065.  
  1066. typedef struct WDPBRec WDPBRec;
  1067.  
  1068. typedef WDPBRec *WDPBPtr;
  1069.  
  1070. #if defined(powerc) || defined (__powerc)
  1071. #pragma options align=mac68k
  1072. #endif
  1073. struct FCBPBRec {
  1074.     QElemPtr                    qLink;
  1075.     short                        qType;
  1076.     short                        ioTrap;
  1077.     Ptr                            ioCmdAddr;
  1078.     IOCompletionUPP                ioCompletion;
  1079.     OSErr                        ioResult;
  1080.     StringPtr                    ioNamePtr;
  1081.     short                        ioVRefNum;
  1082.     short                        ioRefNum;
  1083.     short                        filler;
  1084.     short                        ioFCBIndx;
  1085.     short                        filler1;
  1086.     long                        ioFCBFlNm;
  1087.     short                        ioFCBFlags;
  1088.     unsigned short                ioFCBStBlk;
  1089.     long                        ioFCBEOF;
  1090.     long                        ioFCBPLen;
  1091.     long                        ioFCBCrPs;
  1092.     short                        ioFCBVRefNum;
  1093.     long                        ioFCBClpSiz;
  1094.     long                        ioFCBParID;
  1095. };
  1096. #if defined(powerc) || defined(__powerc)
  1097. #pragma options align=reset
  1098. #endif
  1099.  
  1100. typedef struct FCBPBRec FCBPBRec;
  1101.  
  1102. typedef FCBPBRec *FCBPBPtr;
  1103.  
  1104. #if defined(powerc) || defined (__powerc)
  1105. #pragma options align=mac68k
  1106. #endif
  1107. struct VCB {
  1108.     QElemPtr                    qLink;
  1109.     short                        qType;
  1110.     short                        vcbFlags;
  1111.     unsigned short                vcbSigWord;
  1112.     unsigned long                vcbCrDate;
  1113.     unsigned long                vcbLsMod;
  1114.     short                        vcbAtrb;
  1115.     unsigned short                vcbNmFls;
  1116.     short                        vcbVBMSt;
  1117.     short                        vcbAllocPtr;
  1118.     unsigned short                vcbNmAlBlks;
  1119.     long                        vcbAlBlkSiz;
  1120.     long                        vcbClpSiz;
  1121.     short                        vcbAlBlSt;
  1122.     long                        vcbNxtCNID;
  1123.     unsigned short                vcbFreeBks;
  1124.     Str27                        vcbVN;
  1125.     short                        vcbDrvNum;
  1126.     short                        vcbDRefNum;
  1127.     short                        vcbFSID;
  1128.     short                        vcbVRefNum;
  1129.     Ptr                            vcbMAdr;
  1130.     Ptr                            vcbBufAdr;
  1131.     short                        vcbMLen;
  1132.     short                        vcbDirIndex;
  1133.     short                        vcbDirBlk;
  1134.     unsigned long                vcbVolBkUp;
  1135.     unsigned short                vcbVSeqNum;
  1136.     long                        vcbWrCnt;
  1137.     long                        vcbXTClpSiz;
  1138.     long                        vcbCTClpSiz;
  1139.     unsigned short                vcbNmRtDirs;
  1140.     long                        vcbFilCnt;
  1141.     long                        vcbDirCnt;
  1142.     long                        vcbFndrInfo[8];
  1143.     unsigned short                vcbVCSize;
  1144.     unsigned short                vcbVBMCSiz;
  1145.     unsigned short                vcbCtlCSiz;
  1146.     unsigned short                vcbXTAlBlks;
  1147.     unsigned short                vcbCTAlBlks;
  1148.     short                        vcbXTRef;
  1149.     short                        vcbCTRef;
  1150.     Ptr                            vcbCtlBuf;
  1151.     long                        vcbDirIDM;
  1152.     short                        vcbOffsM;
  1153. };
  1154. #if defined(powerc) || defined(__powerc)
  1155. #pragma options align=reset
  1156. #endif
  1157.  
  1158. typedef struct VCB VCB;
  1159.  
  1160. #if defined(powerc) || defined (__powerc)
  1161. #pragma options align=mac68k
  1162. #endif
  1163. struct DrvQEl {
  1164.     QElemPtr                    qLink;
  1165.     short                        qType;
  1166.     short                        dQDrive;
  1167.     short                        dQRefNum;
  1168.     short                        dQFSID;
  1169.     unsigned short                dQDrvSz;
  1170.     unsigned short                dQDrvSz2;
  1171. };
  1172. #if defined(powerc) || defined(__powerc)
  1173. #pragma options align=reset
  1174. #endif
  1175.  
  1176. typedef struct DrvQEl DrvQEl;
  1177.  
  1178. typedef DrvQEl *DrvQElPtr;
  1179.  
  1180. #ifdef __cplusplus
  1181. extern "C" {
  1182. #endif
  1183.  
  1184. #define PBOpen(pb, async) ((async) ? PBOpenAsync(pb) : PBOpenSync(pb))
  1185.  
  1186.  
  1187. #if USES68KINLINES
  1188. #pragma parameter __D0 PBOpenSync(__A0)
  1189. #endif
  1190. extern pascal OSErr PBOpenSync(ParmBlkPtr paramBlock)
  1191.  ONEWORDINLINE(0xA000);
  1192.  
  1193. #if USES68KINLINES
  1194. #pragma parameter __D0 PBOpenAsync(__A0)
  1195. #endif
  1196. extern pascal OSErr PBOpenAsync(ParmBlkPtr paramBlock)
  1197.  ONEWORDINLINE(0xA400);
  1198.  
  1199. #if USES68KINLINES
  1200. #pragma parameter __D0 PBOpenImmed(__A0)
  1201. #endif
  1202. extern pascal OSErr PBOpenImmed(ParmBlkPtr paramBlock)
  1203.  ONEWORDINLINE(0xA200);
  1204. #define PBClose(pb, async) ((async) ? PBCloseAsync(pb) : PBCloseSync(pb))
  1205.  
  1206.  
  1207. #if USES68KINLINES
  1208. #pragma parameter __D0 PBCloseSync(__A0)
  1209. #endif
  1210. extern pascal OSErr PBCloseSync(ParmBlkPtr paramBlock)
  1211.  ONEWORDINLINE(0xA001);
  1212.  
  1213. #if USES68KINLINES
  1214. #pragma parameter __D0 PBCloseAsync(__A0)
  1215. #endif
  1216. extern pascal OSErr PBCloseAsync(ParmBlkPtr paramBlock)
  1217.  ONEWORDINLINE(0xA401);
  1218.  
  1219. #if USES68KINLINES
  1220. #pragma parameter __D0 PBCloseImmed(__A0)
  1221. #endif
  1222. extern pascal OSErr PBCloseImmed(ParmBlkPtr paramBlock)
  1223.  ONEWORDINLINE(0xA201);
  1224. #define PBRead(pb, async) ((async) ? PBReadAsync(pb) : PBReadSync(pb))
  1225.  
  1226.  
  1227. #if USES68KINLINES
  1228. #pragma parameter __D0 PBReadSync(__A0)
  1229. #endif
  1230. extern pascal OSErr PBReadSync(ParmBlkPtr paramBlock)
  1231.  ONEWORDINLINE(0xA002);
  1232.  
  1233. #if USES68KINLINES
  1234. #pragma parameter __D0 PBReadAsync(__A0)
  1235. #endif
  1236. extern pascal OSErr PBReadAsync(ParmBlkPtr paramBlock)
  1237.  ONEWORDINLINE(0xA402);
  1238.  
  1239. #if USES68KINLINES
  1240. #pragma parameter __D0 PBReadImmed(__A0)
  1241. #endif
  1242. extern pascal OSErr PBReadImmed(ParmBlkPtr paramBlock)
  1243.  ONEWORDINLINE(0xA202);
  1244. #define PBWrite(pb, async) ((async) ? PBWriteAsync(pb) : PBWriteSync(pb))
  1245.  
  1246.  
  1247. #if USES68KINLINES
  1248. #pragma parameter __D0 PBWriteSync(__A0)
  1249. #endif
  1250. extern pascal OSErr PBWriteSync(ParmBlkPtr paramBlock)
  1251.  ONEWORDINLINE(0xA003);
  1252.  
  1253. #if USES68KINLINES
  1254. #pragma parameter __D0 PBWriteAsync(__A0)
  1255. #endif
  1256. extern pascal OSErr PBWriteAsync(ParmBlkPtr paramBlock)
  1257.  ONEWORDINLINE(0xA403);
  1258.  
  1259. #if USES68KINLINES
  1260. #pragma parameter __D0 PBWriteImmed(__A0)
  1261. #endif
  1262. extern pascal OSErr PBWriteImmed(ParmBlkPtr paramBlock)
  1263.  ONEWORDINLINE(0xA203);
  1264. #define PBGetVInfo(pb, async) ((async) ? PBGetVInfoAsync(pb) : PBGetVInfoSync(pb))
  1265.  
  1266.  
  1267. #if USES68KINLINES
  1268. #pragma parameter __D0 PBGetVInfoSync(__A0)
  1269. #endif
  1270. extern pascal OSErr PBGetVInfoSync(ParmBlkPtr paramBlock)
  1271.  ONEWORDINLINE(0xA007);
  1272.  
  1273. #if USES68KINLINES
  1274. #pragma parameter __D0 PBGetVInfoAsync(__A0)
  1275. #endif
  1276. extern pascal OSErr PBGetVInfoAsync(ParmBlkPtr paramBlock)
  1277.  ONEWORDINLINE(0xA407);
  1278. #define PBGetVol(pb, async) ((async) ? PBGetVolAsync(pb) : PBGetVolSync(pb))
  1279.  
  1280.  
  1281. #if USES68KINLINES
  1282. #pragma parameter __D0 PBGetVolSync(__A0)
  1283. #endif
  1284. extern pascal OSErr PBGetVolSync(ParmBlkPtr paramBlock)
  1285.  ONEWORDINLINE(0xA014);
  1286.  
  1287. #if USES68KINLINES
  1288. #pragma parameter __D0 PBGetVolAsync(__A0)
  1289. #endif
  1290. extern pascal OSErr PBGetVolAsync(ParmBlkPtr paramBlock)
  1291.  ONEWORDINLINE(0xA414);
  1292. #define PBSetVol(pb, async) ((async) ? PBSetVolAsync(pb) : PBSetVolSync(pb))
  1293.  
  1294.  
  1295. #if USES68KINLINES
  1296. #pragma parameter __D0 PBSetVolSync(__A0)
  1297. #endif
  1298. extern pascal OSErr PBSetVolSync(ParmBlkPtr paramBlock)
  1299.  ONEWORDINLINE(0xA015);
  1300.  
  1301. #if USES68KINLINES
  1302. #pragma parameter __D0 PBSetVolAsync(__A0)
  1303. #endif
  1304. extern pascal OSErr PBSetVolAsync(ParmBlkPtr paramBlock)
  1305.  ONEWORDINLINE(0xA415);
  1306. #define PBFlushVol(pb, async) ((async) ? PBFlushVolAsync(pb) : PBFlushVolSync(pb))
  1307.  
  1308.  
  1309. #if USES68KINLINES
  1310. #pragma parameter __D0 PBFlushVolSync(__A0)
  1311. #endif
  1312. extern pascal OSErr PBFlushVolSync(ParmBlkPtr paramBlock)
  1313.  ONEWORDINLINE(0xA013);
  1314.  
  1315. #if USES68KINLINES
  1316. #pragma parameter __D0 PBFlushVolAsync(__A0)
  1317. #endif
  1318. extern pascal OSErr PBFlushVolAsync(ParmBlkPtr paramBlock)
  1319.  ONEWORDINLINE(0xA413);
  1320. #define PBCreate(pb, async) ((async) ? PBCreateAsync(pb) : PBCreateSync(pb))
  1321.  
  1322.  
  1323. #if USES68KINLINES
  1324. #pragma parameter __D0 PBCreateSync(__A0)
  1325. #endif
  1326. extern pascal OSErr PBCreateSync(ParmBlkPtr paramBlock)
  1327.  ONEWORDINLINE(0xA008);
  1328.  
  1329. #if USES68KINLINES
  1330. #pragma parameter __D0 PBCreateAsync(__A0)
  1331. #endif
  1332. extern pascal OSErr PBCreateAsync(ParmBlkPtr paramBlock)
  1333.  ONEWORDINLINE(0xA408);
  1334. #define PBDelete(pb, async) ((async) ? PBDeleteAsync(pb) : PBDeleteSync(pb))
  1335.  
  1336.  
  1337. #if USES68KINLINES
  1338. #pragma parameter __D0 PBDeleteSync(__A0)
  1339. #endif
  1340. extern pascal OSErr PBDeleteSync(ParmBlkPtr paramBlock)
  1341.  ONEWORDINLINE(0xA009);
  1342.  
  1343. #if USES68KINLINES
  1344. #pragma parameter __D0 PBDeleteAsync(__A0)
  1345. #endif
  1346. extern pascal OSErr PBDeleteAsync(ParmBlkPtr paramBlock)
  1347.  ONEWORDINLINE(0xA409);
  1348. #define PBOpenDF(pb, async) ((async) ? PBOpenDFAsync(pb) : PBOpenDFSync(pb))
  1349.  
  1350.  
  1351. #if USES68KINLINES
  1352. #pragma parameter __D0 PBOpenDFSync(__A0)
  1353. #endif
  1354. extern pascal OSErr PBOpenDFSync(ParmBlkPtr paramBlock)
  1355.  TWOWORDINLINE(0x701A, 0xA060);
  1356.  
  1357. #if USES68KINLINES
  1358. #pragma parameter __D0 PBOpenDFAsync(__A0)
  1359. #endif
  1360. extern pascal OSErr PBOpenDFAsync(ParmBlkPtr paramBlock)
  1361.  TWOWORDINLINE(0x701A, 0xA460);
  1362. #define PBOpenRF(pb, async) ((async) ? PBOpenRFAsync(pb) : PBOpenRFSync(pb))
  1363.  
  1364.  
  1365. #if USES68KINLINES
  1366. #pragma parameter __D0 PBOpenRFSync(__A0)
  1367. #endif
  1368. extern pascal OSErr PBOpenRFSync(ParmBlkPtr paramBlock)
  1369.  ONEWORDINLINE(0xA00A);
  1370.  
  1371. #if USES68KINLINES
  1372. #pragma parameter __D0 PBOpenRFAsync(__A0)
  1373. #endif
  1374. extern pascal OSErr PBOpenRFAsync(ParmBlkPtr paramBlock)
  1375.  ONEWORDINLINE(0xA40A);
  1376. #define PBRename(pb, async) ((async) ? PBRenameAsync(pb) : PBRenameSync(pb))
  1377.  
  1378.  
  1379. #if USES68KINLINES
  1380. #pragma parameter __D0 PBRenameSync(__A0)
  1381. #endif
  1382. extern pascal OSErr PBRenameSync(ParmBlkPtr paramBlock)
  1383.  ONEWORDINLINE(0xA00B);
  1384.  
  1385. #if USES68KINLINES
  1386. #pragma parameter __D0 PBRenameAsync(__A0)
  1387. #endif
  1388. extern pascal OSErr PBRenameAsync(ParmBlkPtr paramBlock)
  1389.  ONEWORDINLINE(0xA40B);
  1390. #define PBGetFInfo(pb, async) ((async) ? PBGetFInfoAsync(pb) : PBGetFInfoSync(pb))
  1391.  
  1392.  
  1393. #if USES68KINLINES
  1394. #pragma parameter __D0 PBGetFInfoSync(__A0)
  1395. #endif
  1396. extern pascal OSErr PBGetFInfoSync(ParmBlkPtr paramBlock)
  1397.  ONEWORDINLINE(0xA00C);
  1398.  
  1399. #if USES68KINLINES
  1400. #pragma parameter __D0 PBGetFInfoAsync(__A0)
  1401. #endif
  1402. extern pascal OSErr PBGetFInfoAsync(ParmBlkPtr paramBlock)
  1403.  ONEWORDINLINE(0xA40C);
  1404. #define PBSetFInfo(pb, async) ((async) ? PBSetFInfoAsync(pb) : PBSetFInfoSync(pb))
  1405.  
  1406.  
  1407. #if USES68KINLINES
  1408. #pragma parameter __D0 PBSetFInfoSync(__A0)
  1409. #endif
  1410. extern pascal OSErr PBSetFInfoSync(ParmBlkPtr paramBlock)
  1411.  ONEWORDINLINE(0xA00D);
  1412.  
  1413. #if USES68KINLINES
  1414. #pragma parameter __D0 PBSetFInfoAsync(__A0)
  1415. #endif
  1416. extern pascal OSErr PBSetFInfoAsync(ParmBlkPtr paramBlock)
  1417.  ONEWORDINLINE(0xA40D);
  1418. #define PBSetFLock(pb, async) ((async) ? PBSetFLockAsync(pb) : PBSetFLockSync(pb))
  1419.  
  1420.  
  1421. #if USES68KINLINES
  1422. #pragma parameter __D0 PBSetFLockSync(__A0)
  1423. #endif
  1424. extern pascal OSErr PBSetFLockSync(ParmBlkPtr paramBlock)
  1425.  ONEWORDINLINE(0xA041);
  1426.  
  1427. #if USES68KINLINES
  1428. #pragma parameter __D0 PBSetFLockAsync(__A0)
  1429. #endif
  1430. extern pascal OSErr PBSetFLockAsync(ParmBlkPtr paramBlock)
  1431.  ONEWORDINLINE(0xA441);
  1432. #define PBRstFLock(pb, async) ((async) ? PBRstFLockAsync(pb) : PBRstFLockSync(pb))
  1433.  
  1434.  
  1435. #if USES68KINLINES
  1436. #pragma parameter __D0 PBRstFLockSync(__A0)
  1437. #endif
  1438. extern pascal OSErr PBRstFLockSync(ParmBlkPtr paramBlock)
  1439.  ONEWORDINLINE(0xA042);
  1440.  
  1441. #if USES68KINLINES
  1442. #pragma parameter __D0 PBRstFLockAsync(__A0)
  1443. #endif
  1444. extern pascal OSErr PBRstFLockAsync(ParmBlkPtr paramBlock)
  1445.  ONEWORDINLINE(0xA442);
  1446. #define PBSetFVers(pb, async) ((async) ? PBSetFVersAsync(pb) : PBSetFVersSync(pb))
  1447.  
  1448.  
  1449. #if USES68KINLINES
  1450. #pragma parameter __D0 PBSetFVersSync(__A0)
  1451. #endif
  1452. extern pascal OSErr PBSetFVersSync(ParmBlkPtr paramBlock)
  1453.  ONEWORDINLINE(0xA043);
  1454.  
  1455. #if USES68KINLINES
  1456. #pragma parameter __D0 PBSetFVersAsync(__A0)
  1457. #endif
  1458. extern pascal OSErr PBSetFVersAsync(ParmBlkPtr paramBlock)
  1459.  ONEWORDINLINE(0xA443);
  1460. #define PBAllocate(pb, async) ((async) ? PBAllocateAsync(pb) : PBAllocateSync(pb))
  1461.  
  1462.  
  1463. #if USES68KINLINES
  1464. #pragma parameter __D0 PBAllocateSync(__A0)
  1465. #endif
  1466. extern pascal OSErr PBAllocateSync(ParmBlkPtr paramBlock)
  1467.  ONEWORDINLINE(0xA010);
  1468.  
  1469. #if USES68KINLINES
  1470. #pragma parameter __D0 PBAllocateAsync(__A0)
  1471. #endif
  1472. extern pascal OSErr PBAllocateAsync(ParmBlkPtr paramBlock)
  1473.  ONEWORDINLINE(0xA410);
  1474. #define PBGetEOF(pb, async) ((async) ? PBGetEOFAsync(pb) : PBGetEOFSync(pb))
  1475.  
  1476.  
  1477. #if USES68KINLINES
  1478. #pragma parameter __D0 PBGetEOFSync(__A0)
  1479. #endif
  1480. extern pascal OSErr PBGetEOFSync(ParmBlkPtr paramBlock)
  1481.  ONEWORDINLINE(0xA011);
  1482.  
  1483. #if USES68KINLINES
  1484. #pragma parameter __D0 PBGetEOFAsync(__A0)
  1485. #endif
  1486. extern pascal OSErr PBGetEOFAsync(ParmBlkPtr paramBlock)
  1487.  ONEWORDINLINE(0xA411);
  1488. #define PBSetEOF(pb, async) ((async) ? PBSetEOFAsync(pb) : PBSetEOFSync(pb))
  1489.  
  1490.  
  1491. #if USES68KINLINES
  1492. #pragma parameter __D0 PBSetEOFSync(__A0)
  1493. #endif
  1494. extern pascal OSErr PBSetEOFSync(ParmBlkPtr paramBlock)
  1495.  ONEWORDINLINE(0xA012);
  1496.  
  1497. #if USES68KINLINES
  1498. #pragma parameter __D0 PBSetEOFAsync(__A0)
  1499. #endif
  1500. extern pascal OSErr PBSetEOFAsync(ParmBlkPtr paramBlock)
  1501.  ONEWORDINLINE(0xA412);
  1502. #define PBGetFPos(pb, async) ((async) ? PBGetFPosAsync(pb) : PBGetFPosSync(pb))
  1503.  
  1504.  
  1505. #if USES68KINLINES
  1506. #pragma parameter __D0 PBGetFPosSync(__A0)
  1507. #endif
  1508. extern pascal OSErr PBGetFPosSync(ParmBlkPtr paramBlock)
  1509.  ONEWORDINLINE(0xA018);
  1510.  
  1511. #if USES68KINLINES
  1512. #pragma parameter __D0 PBGetFPosAsync(__A0)
  1513. #endif
  1514. extern pascal OSErr PBGetFPosAsync(ParmBlkPtr paramBlock)
  1515.  ONEWORDINLINE(0xA418);
  1516. #define PBSetFPos(pb, async) ((async) ? PBSetFPosAsync(pb) : PBSetFPosSync(pb))
  1517.  
  1518.  
  1519. #if USES68KINLINES
  1520. #pragma parameter __D0 PBSetFPosSync(__A0)
  1521. #endif
  1522. extern pascal OSErr PBSetFPosSync(ParmBlkPtr paramBlock)
  1523.  ONEWORDINLINE(0xA044);
  1524.  
  1525. #if USES68KINLINES
  1526. #pragma parameter __D0 PBSetFPosAsync(__A0)
  1527. #endif
  1528. extern pascal OSErr PBSetFPosAsync(ParmBlkPtr paramBlock)
  1529.  ONEWORDINLINE(0xA444);
  1530. #define PBFlushFile(pb, async) ((async) ? PBFlushFileAsync(pb) : PBFlushFileSync(pb))
  1531.  
  1532.  
  1533. #if USES68KINLINES
  1534. #pragma parameter __D0 PBFlushFileSync(__A0)
  1535. #endif
  1536. extern pascal OSErr PBFlushFileSync(ParmBlkPtr paramBlock)
  1537.  ONEWORDINLINE(0xA045);
  1538.  
  1539. #if USES68KINLINES
  1540. #pragma parameter __D0 PBFlushFileAsync(__A0)
  1541. #endif
  1542. extern pascal OSErr PBFlushFileAsync(ParmBlkPtr paramBlock)
  1543.  ONEWORDINLINE(0xA445);
  1544.  
  1545. #if USES68KINLINES
  1546. #pragma parameter __D0 PBMountVol(__A0)
  1547. #endif
  1548. extern pascal OSErr PBMountVol(ParmBlkPtr paramBlock)
  1549.  ONEWORDINLINE(0xA00F);
  1550.  
  1551. #if USES68KINLINES
  1552. #pragma parameter __D0 PBUnmountVol(__A0)
  1553. #endif
  1554. extern pascal OSErr PBUnmountVol(ParmBlkPtr paramBlock)
  1555.  ONEWORDINLINE(0xA00E);
  1556.  
  1557. #if USES68KINLINES
  1558. #pragma parameter __D0 PBEject(__A0)
  1559. #endif
  1560. extern pascal OSErr PBEject(ParmBlkPtr paramBlock)
  1561.  ONEWORDINLINE(0xA017);
  1562.  
  1563. #if USES68KINLINES
  1564. #pragma parameter __D0 PBOffLine(__A0)
  1565. #endif
  1566. extern pascal OSErr PBOffLine(ParmBlkPtr paramBlock)
  1567.  ONEWORDINLINE(0xA035);
  1568. #define PBCatSearch(pb, async) ((async) ? PBCatSearchAsync(pb) : PBCatSearchSync(pb))
  1569.  
  1570.  
  1571. #if USES68KINLINES
  1572. #pragma parameter __D0 PBCatSearchSync(__A0)
  1573. #endif
  1574. extern pascal OSErr PBCatSearchSync(CSParamPtr paramBlock)
  1575.  TWOWORDINLINE(0x7018, 0xA260);
  1576.  
  1577. #if USES68KINLINES
  1578. #pragma parameter __D0 PBCatSearchAsync(__A0)
  1579. #endif
  1580. extern pascal OSErr PBCatSearchAsync(CSParamPtr paramBlock)
  1581.  TWOWORDINLINE(0x7018, 0xA660);
  1582. extern pascal void AddDrive(short drvrRefNum, short drvNum, DrvQElPtr qEl);
  1583. extern pascal OSErr FSOpen(ConstStr255Param fileName, short vRefNum, short *refNum);
  1584. extern pascal OSErr OpenDF(ConstStr255Param fileName, short vRefNum, short *refNum);
  1585. extern OSErr fsopen(char *fileName, short vRefNum, short *refNum);
  1586. extern pascal OSErr FSClose(short refNum);
  1587. extern pascal OSErr FSRead(short refNum, long *count, void *buffPtr);
  1588. extern pascal OSErr FSWrite(short refNum, long *count, const void *buffPtr);
  1589. extern pascal OSErr GetVInfo(short drvNum, StringPtr volName, short *vRefNum, long *freeBytes);
  1590. extern OSErr getvinfo(short drvNum, char *volName, short *vRefNum, long *freeBytes);
  1591. extern pascal OSErr GetFInfo(ConstStr255Param fileName, short vRefNum, FInfo *fndrInfo);
  1592. extern OSErr getfinfo(char *fileName, short vRefNum, FInfo *fndrInfo);
  1593. extern pascal OSErr GetVol(StringPtr volName, short *vRefNum);
  1594. extern OSErr getvol(char *volName, short *vRefNum);
  1595. extern pascal OSErr SetVol(StringPtr volName, short vRefNum);
  1596. extern OSErr setvol(char *volName, short vRefNum);
  1597. extern pascal OSErr UnmountVol(StringPtr volName, short vRefNum);
  1598. extern OSErr unmountvol(char *volName, short vRefNum);
  1599. extern pascal OSErr Eject(StringPtr volName, short vRefNum);
  1600. extern OSErr eject(char *volName, short vRefNum);
  1601. extern pascal OSErr FlushVol(StringPtr volName, short vRefNum);
  1602. extern OSErr flushvol(char *volName, short vRefNum);
  1603. extern pascal OSErr Create(ConstStr255Param fileName, short vRefNum, OSType creator, OSType fileType);
  1604. extern OSErr create(char *fileName, short vRefNum, OSType creator, OSType fileType);
  1605. extern pascal OSErr FSDelete(ConstStr255Param fileName, short vRefNum);
  1606. extern OSErr fsdelete(char *fileName, short vRefNum);
  1607. extern pascal OSErr OpenRF(ConstStr255Param fileName, short vRefNum, short *refNum);
  1608. extern OSErr openrf(char *fileName, short vRefNum, short *refNum);
  1609. extern pascal OSErr Rename(ConstStr255Param oldName, short vRefNum, ConstStr255Param newName);
  1610. extern OSErr fsrename(char *oldName, short vRefNum, char *newName);
  1611. extern pascal OSErr SetFInfo(ConstStr255Param fileName, short vRefNum, const FInfo *fndrInfo);
  1612. extern OSErr setfinfo(char *fileName, short vRefNum, FInfo *fndrInfo);
  1613. extern pascal OSErr SetFLock(ConstStr255Param fileName, short vRefNum);
  1614. extern OSErr setflock(char *fileName, short vRefNum);
  1615. extern pascal OSErr RstFLock(ConstStr255Param fileName, short vRefNum);
  1616. extern OSErr rstflock(char *fileName, short vRefNum);
  1617. extern pascal OSErr Allocate(short refNum, long *count);
  1618. extern pascal OSErr GetEOF(short refNum, long *logEOF);
  1619. extern pascal OSErr SetEOF(short refNum, long logEOF);
  1620. extern pascal OSErr GetFPos(short refNum, long *filePos);
  1621. extern pascal OSErr SetFPos(short refNum, short posMode, long posOff);
  1622. extern pascal OSErr GetVRefNum(short fileRefNum, short *vRefNum);
  1623. #define PBOpenWD(pb, async) ((async) ? PBOpenWDAsync(pb) : PBOpenWDSync(pb))
  1624.  
  1625.  
  1626. #if USES68KINLINES
  1627. #pragma parameter __D0 PBOpenWDSync(__A0)
  1628. #endif
  1629. extern pascal OSErr PBOpenWDSync(WDPBPtr paramBlock)
  1630.  TWOWORDINLINE(0x7001, 0xA260);
  1631.  
  1632. #if USES68KINLINES
  1633. #pragma parameter __D0 PBOpenWDAsync(__A0)
  1634. #endif
  1635. extern pascal OSErr PBOpenWDAsync(WDPBPtr paramBlock)
  1636.  TWOWORDINLINE(0x7001, 0xA660);
  1637. #define PBCloseWD(pb, async) ((async) ? PBCloseWDAsync(pb) : PBCloseWDSync(pb))
  1638.  
  1639.  
  1640. #if USES68KINLINES
  1641. #pragma parameter __D0 PBCloseWDSync(__A0)
  1642. #endif
  1643. extern pascal OSErr PBCloseWDSync(WDPBPtr paramBlock)
  1644.  TWOWORDINLINE(0x7002, 0xA260);
  1645.  
  1646. #if USES68KINLINES
  1647. #pragma parameter __D0 PBCloseWDAsync(__A0)
  1648. #endif
  1649. extern pascal OSErr PBCloseWDAsync(WDPBPtr paramBlock)
  1650.  TWOWORDINLINE(0x7002, 0xA660);
  1651. #define PBHSetVol(pb, async) ((async) ? PBHSetVolAsync(pb) : PBHSetVolSync(pb))
  1652.  
  1653.  
  1654. #if USES68KINLINES
  1655. #pragma parameter __D0 PBHSetVolSync(__A0)
  1656. #endif
  1657. extern pascal OSErr PBHSetVolSync(WDPBPtr paramBlock)
  1658.  ONEWORDINLINE(0xA215);
  1659.  
  1660. #if USES68KINLINES
  1661. #pragma parameter __D0 PBHSetVolAsync(__A0)
  1662. #endif
  1663. extern pascal OSErr PBHSetVolAsync(WDPBPtr paramBlock)
  1664.  ONEWORDINLINE(0xA615);
  1665. #define PBHGetVol(pb, async) ((async) ? PBHGetVolAsync(pb) : PBHGetVolSync(pb))
  1666.  
  1667.  
  1668. #if USES68KINLINES
  1669. #pragma parameter __D0 PBHGetVolSync(__A0)
  1670. #endif
  1671. extern pascal OSErr PBHGetVolSync(WDPBPtr paramBlock)
  1672.  ONEWORDINLINE(0xA214);
  1673.  
  1674. #if USES68KINLINES
  1675. #pragma parameter __D0 PBHGetVolAsync(__A0)
  1676. #endif
  1677. extern pascal OSErr PBHGetVolAsync(WDPBPtr paramBlock)
  1678.  ONEWORDINLINE(0xA614);
  1679. #define PBCatMove(pb, async) ((async) ? PBCatMoveAsync(pb) : PBCatMoveSync(pb))
  1680.  
  1681.  
  1682. #if USES68KINLINES
  1683. #pragma parameter __D0 PBCatMoveSync(__A0)
  1684. #endif
  1685. extern pascal OSErr PBCatMoveSync(CMovePBPtr paramBlock)
  1686.  TWOWORDINLINE(0x7005, 0xA260);
  1687.  
  1688. #if USES68KINLINES
  1689. #pragma parameter __D0 PBCatMoveAsync(__A0)
  1690. #endif
  1691. extern pascal OSErr PBCatMoveAsync(CMovePBPtr paramBlock)
  1692.  TWOWORDINLINE(0x7005, 0xA660);
  1693. #define PBDirCreate(pb, async) ((async) ? PBDirCreateAsync(pb) : PBDirCreateSync(pb))
  1694.  
  1695.  
  1696. #if USES68KINLINES
  1697. #pragma parameter __D0 PBDirCreateSync(__A0)
  1698. #endif
  1699. extern pascal OSErr PBDirCreateSync(HParmBlkPtr paramBlock)
  1700.  TWOWORDINLINE(0x7006, 0xA260);
  1701.  
  1702. #if USES68KINLINES
  1703. #pragma parameter __D0 PBDirCreateAsync(__A0)
  1704. #endif
  1705. extern pascal OSErr PBDirCreateAsync(HParmBlkPtr paramBlock)
  1706.  TWOWORDINLINE(0x7006, 0xA660);
  1707. #define PBGetWDInfo(pb, async) ((async) ? PBGetWDInfoAsync(pb) : PBGetWDInfoSync(pb))
  1708.  
  1709.  
  1710. #if USES68KINLINES
  1711. #pragma parameter __D0 PBGetWDInfoSync(__A0)
  1712. #endif
  1713. extern pascal OSErr PBGetWDInfoSync(WDPBPtr paramBlock)
  1714.  TWOWORDINLINE(0x7007, 0xA260);
  1715.  
  1716. #if USES68KINLINES
  1717. #pragma parameter __D0 PBGetWDInfoAsync(__A0)
  1718. #endif
  1719. extern pascal OSErr PBGetWDInfoAsync(WDPBPtr paramBlock)
  1720.  TWOWORDINLINE(0x7007, 0xA660);
  1721. #define PBGetFCBInfo(pb, async) ((async) ? PBGetFCBInfoAsync(pb) : PBGetFCBInfoSync(pb))
  1722.  
  1723.  
  1724. #if USES68KINLINES
  1725. #pragma parameter __D0 PBGetFCBInfoSync(__A0)
  1726. #endif
  1727. extern pascal OSErr PBGetFCBInfoSync(FCBPBPtr paramBlock)
  1728.  TWOWORDINLINE(0x7008, 0xA260);
  1729.  
  1730. #if USES68KINLINES
  1731. #pragma parameter __D0 PBGetFCBInfoAsync(__A0)
  1732. #endif
  1733. extern pascal OSErr PBGetFCBInfoAsync(FCBPBPtr paramBlock)
  1734.  TWOWORDINLINE(0x7008, 0xA660);
  1735. #define PBGetCatInfo(pb, async) ((async) ? PBGetCatInfoAsync(pb) : PBGetCatInfoSync(pb))
  1736.  
  1737.  
  1738. #if USES68KINLINES
  1739. #pragma parameter __D0 PBGetCatInfoSync(__A0)
  1740. #endif
  1741. extern pascal OSErr PBGetCatInfoSync(CInfoPBPtr paramBlock)
  1742.  TWOWORDINLINE(0x7009, 0xA260);
  1743.  
  1744. #if USES68KINLINES
  1745. #pragma parameter __D0 PBGetCatInfoAsync(__A0)
  1746. #endif
  1747. extern pascal OSErr PBGetCatInfoAsync(CInfoPBPtr paramBlock)
  1748.  TWOWORDINLINE(0x7009, 0xA660);
  1749. #define PBSetCatInfo(pb, async) ((async) ? PBSetCatInfoAsync(pb) : PBSetCatInfoSync(pb))
  1750.  
  1751.  
  1752. #if USES68KINLINES
  1753. #pragma parameter __D0 PBSetCatInfoSync(__A0)
  1754. #endif
  1755. extern pascal OSErr PBSetCatInfoSync(CInfoPBPtr paramBlock)
  1756.  TWOWORDINLINE(0x700A, 0xA260);
  1757.  
  1758. #if USES68KINLINES
  1759. #pragma parameter __D0 PBSetCatInfoAsync(__A0)
  1760. #endif
  1761. extern pascal OSErr PBSetCatInfoAsync(CInfoPBPtr paramBlock)
  1762.  TWOWORDINLINE(0x700A, 0xA660);
  1763. #define PBAllocContig(pb, async) ((async) ? PBAllocContigAsync(pb) : PBAllocContigSync(pb))
  1764.  
  1765.  
  1766. #if USES68KINLINES
  1767. #pragma parameter __D0 PBAllocContigSync(__A0)
  1768. #endif
  1769. extern pascal OSErr PBAllocContigSync(ParmBlkPtr paramBlock)
  1770.  ONEWORDINLINE(0xA210);
  1771.  
  1772. #if USES68KINLINES
  1773. #pragma parameter __D0 PBAllocContigAsync(__A0)
  1774. #endif
  1775. extern pascal OSErr PBAllocContigAsync(ParmBlkPtr paramBlock)
  1776.  ONEWORDINLINE(0xA610);
  1777. #define PBLockRange(pb, async) ((async) ? PBLockRangeAsync(pb) : PBLockRangeSync(pb))
  1778.  
  1779.  
  1780. #if USES68KINLINES
  1781. #pragma parameter __D0 PBLockRangeSync(__A0)
  1782. #endif
  1783. extern pascal OSErr PBLockRangeSync(ParmBlkPtr paramBlock)
  1784.  TWOWORDINLINE(0x7010, 0xA260);
  1785.  
  1786. #if USES68KINLINES
  1787. #pragma parameter __D0 PBLockRangeAsync(__A0)
  1788. #endif
  1789. extern pascal OSErr PBLockRangeAsync(ParmBlkPtr paramBlock)
  1790.  TWOWORDINLINE(0x7010, 0xA660);
  1791. #define PBUnlockRange(pb, async) ((async) ? PBUnlockRangeAsync(pb) : PBUnlockRangeSync(pb))
  1792.  
  1793.  
  1794. #if USES68KINLINES
  1795. #pragma parameter __D0 PBUnlockRangeSync(__A0)
  1796. #endif
  1797. extern pascal OSErr PBUnlockRangeSync(ParmBlkPtr paramBlock)
  1798.  TWOWORDINLINE(0x7011, 0xA260);
  1799.  
  1800. #if USES68KINLINES
  1801. #pragma parameter __D0 PBUnlockRangeAsync(__A0)
  1802. #endif
  1803. extern pascal OSErr PBUnlockRangeAsync(ParmBlkPtr paramBlock)
  1804.  TWOWORDINLINE(0x7011, 0xA660);
  1805. #define PBSetVInfo(pb, async) ((async) ? PBSetVInfoAsync(pb) : PBSetVInfoSync(pb))
  1806.  
  1807.  
  1808. #if USES68KINLINES
  1809. #pragma parameter __D0 PBSetVInfoSync(__A0)
  1810. #endif
  1811. extern pascal OSErr PBSetVInfoSync(HParmBlkPtr paramBlock)
  1812.  TWOWORDINLINE(0x700B, 0xA260);
  1813.  
  1814. #if USES68KINLINES
  1815. #pragma parameter __D0 PBSetVInfoAsync(__A0)
  1816. #endif
  1817. extern pascal OSErr PBSetVInfoAsync(HParmBlkPtr paramBlock)
  1818.  TWOWORDINLINE(0x700B, 0xA660);
  1819. #define PBHGetVInfo(pb, async) ((async) ? PBHGetVInfoAsync(pb) : PBHGetVInfoSync(pb))
  1820.  
  1821.  
  1822. #if USES68KINLINES
  1823. #pragma parameter __D0 PBHGetVInfoSync(__A0)
  1824. #endif
  1825. extern pascal OSErr PBHGetVInfoSync(HParmBlkPtr paramBlock)
  1826.  ONEWORDINLINE(0xA207);
  1827.  
  1828. #if USES68KINLINES
  1829. #pragma parameter __D0 PBHGetVInfoAsync(__A0)
  1830. #endif
  1831. extern pascal OSErr PBHGetVInfoAsync(HParmBlkPtr paramBlock)
  1832.  ONEWORDINLINE(0xA607);
  1833. #define PBHOpen(pb, async) ((async) ? PBHOpenAsync(pb) : PBHOpenSync(pb))
  1834.  
  1835.  
  1836. #if USES68KINLINES
  1837. #pragma parameter __D0 PBHOpenSync(__A0)
  1838. #endif
  1839. extern pascal OSErr PBHOpenSync(HParmBlkPtr paramBlock)
  1840.  ONEWORDINLINE(0xA200);
  1841.  
  1842. #if USES68KINLINES
  1843. #pragma parameter __D0 PBHOpenAsync(__A0)
  1844. #endif
  1845. extern pascal OSErr PBHOpenAsync(HParmBlkPtr paramBlock)
  1846.  ONEWORDINLINE(0xA600);
  1847. #define PBHOpenRF(pb, async) ((async) ? PBHOpenRFAsync(pb) : PBHOpenRFSync(pb))
  1848.  
  1849.  
  1850. #if USES68KINLINES
  1851. #pragma parameter __D0 PBHOpenRFSync(__A0)
  1852. #endif
  1853. extern pascal OSErr PBHOpenRFSync(HParmBlkPtr paramBlock)
  1854.  ONEWORDINLINE(0xA20A);
  1855.  
  1856. #if USES68KINLINES
  1857. #pragma parameter __D0 PBHOpenRFAsync(__A0)
  1858. #endif
  1859. extern pascal OSErr PBHOpenRFAsync(HParmBlkPtr paramBlock)
  1860.  ONEWORDINLINE(0xA60A);
  1861. #define PBHOpenDF(pb, async) ((async) ? PBHOpenDFAsync(pb) : PBHOpenDFSync(pb))
  1862.  
  1863.  
  1864. #if USES68KINLINES
  1865. #pragma parameter __D0 PBHOpenDFSync(__A0)
  1866. #endif
  1867. extern pascal OSErr PBHOpenDFSync(HParmBlkPtr paramBlock)
  1868.  TWOWORDINLINE(0x701A, 0xA260);
  1869.  
  1870. #if USES68KINLINES
  1871. #pragma parameter __D0 PBHOpenDFAsync(__A0)
  1872. #endif
  1873. extern pascal OSErr PBHOpenDFAsync(HParmBlkPtr paramBlock)
  1874.  TWOWORDINLINE(0x701A, 0xA660);
  1875. #define PBHCreate(pb, async) ((async) ? PBHCreateAsync(pb) : PBHCreateSync(pb))
  1876.  
  1877.  
  1878. #if USES68KINLINES
  1879. #pragma parameter __D0 PBHCreateSync(__A0)
  1880. #endif
  1881. extern pascal OSErr PBHCreateSync(HParmBlkPtr paramBlock)
  1882.  ONEWORDINLINE(0xA208);
  1883.  
  1884. #if USES68KINLINES
  1885. #pragma parameter __D0 PBHCreateAsync(__A0)
  1886. #endif
  1887. extern pascal OSErr PBHCreateAsync(HParmBlkPtr paramBlock)
  1888.  ONEWORDINLINE(0xA608);
  1889. #define PBHDelete(pb, async) ((async) ? PBHDeleteAsync(pb) : PBHDeleteSync(pb))
  1890.  
  1891.  
  1892. #if USES68KINLINES
  1893. #pragma parameter __D0 PBHDeleteSync(__A0)
  1894. #endif
  1895. extern pascal OSErr PBHDeleteSync(HParmBlkPtr paramBlock)
  1896.  ONEWORDINLINE(0xA209);
  1897.  
  1898. #if USES68KINLINES
  1899. #pragma parameter __D0 PBHDeleteAsync(__A0)
  1900. #endif
  1901. extern pascal OSErr PBHDeleteAsync(HParmBlkPtr paramBlock)
  1902.  ONEWORDINLINE(0xA609);
  1903. #define PBHRename(pb, async) ((async) ? PBHRenameAsync(pb) : PBHRenameSync(pb))
  1904.  
  1905.  
  1906. #if USES68KINLINES
  1907. #pragma parameter __D0 PBHRenameSync(__A0)
  1908. #endif
  1909. extern pascal OSErr PBHRenameSync(HParmBlkPtr paramBlock)
  1910.  ONEWORDINLINE(0xA20B);
  1911.  
  1912. #if USES68KINLINES
  1913. #pragma parameter __D0 PBHRenameAsync(__A0)
  1914. #endif
  1915. extern pascal OSErr PBHRenameAsync(HParmBlkPtr paramBlock)
  1916.  ONEWORDINLINE(0xA60B);
  1917. #define PBHRstFLock(pb, async) ((async) ? PBHRstFLockAsync(pb) : PBHRstFLockSync(pb))
  1918.  
  1919.  
  1920. #if USES68KINLINES
  1921. #pragma parameter __D0 PBHRstFLockSync(__A0)
  1922. #endif
  1923. extern pascal OSErr PBHRstFLockSync(HParmBlkPtr paramBlock)
  1924.  ONEWORDINLINE(0xA242);
  1925.  
  1926. #if USES68KINLINES
  1927. #pragma parameter __D0 PBHRstFLockAsync(__A0)
  1928. #endif
  1929. extern pascal OSErr PBHRstFLockAsync(HParmBlkPtr paramBlock)
  1930.  ONEWORDINLINE(0xA642);
  1931. #define PBHSetFLock(pb, async) ((async) ? PBHSetFLockAsync(pb) : PBHSetFLockSync(pb))
  1932.  
  1933.  
  1934. #if USES68KINLINES
  1935. #pragma parameter __D0 PBHSetFLockSync(__A0)
  1936. #endif
  1937. extern pascal OSErr PBHSetFLockSync(HParmBlkPtr paramBlock)
  1938.  ONEWORDINLINE(0xA241);
  1939.  
  1940. #if USES68KINLINES
  1941. #pragma parameter __D0 PBHSetFLockAsync(__A0)
  1942. #endif
  1943. extern pascal OSErr PBHSetFLockAsync(HParmBlkPtr paramBlock)
  1944.  ONEWORDINLINE(0xA641);
  1945. #define PBHGetFInfo(pb, async) ((async) ? PBHGetFInfoAsync(pb) : PBHGetFInfoSync(pb))
  1946.  
  1947.  
  1948. #if USES68KINLINES
  1949. #pragma parameter __D0 PBHGetFInfoSync(__A0)
  1950. #endif
  1951. extern pascal OSErr PBHGetFInfoSync(HParmBlkPtr paramBlock)
  1952.  ONEWORDINLINE(0xA20C);
  1953.  
  1954. #if USES68KINLINES
  1955. #pragma parameter __D0 PBHGetFInfoAsync(__A0)
  1956. #endif
  1957. extern pascal OSErr PBHGetFInfoAsync(HParmBlkPtr paramBlock)
  1958.  ONEWORDINLINE(0xA60C);
  1959. #define PBHSetFInfo(pb, async) ((async) ? PBHSetFInfoAsync(pb) : PBHSetFInfoSync(pb))
  1960.  
  1961.  
  1962. #if USES68KINLINES
  1963. #pragma parameter __D0 PBHSetFInfoSync(__A0)
  1964. #endif
  1965. extern pascal OSErr PBHSetFInfoSync(HParmBlkPtr paramBlock)
  1966.  ONEWORDINLINE(0xA20D);
  1967.  
  1968. #if USES68KINLINES
  1969. #pragma parameter __D0 PBHSetFInfoAsync(__A0)
  1970. #endif
  1971. extern pascal OSErr PBHSetFInfoAsync(HParmBlkPtr paramBlock)
  1972.  ONEWORDINLINE(0xA60D);
  1973. #define PBMakeFSSpec(pb, async) ((async) ? PBMakeFSSpecAsync(pb) : PBMakeFSSpecSync(pb))
  1974.  
  1975.  
  1976. #if USES68KINLINES
  1977. #pragma parameter __D0 PBMakeFSSpecSync(__A0)
  1978. #endif
  1979. extern pascal OSErr PBMakeFSSpecSync(HParmBlkPtr paramBlock)
  1980.  TWOWORDINLINE(0x701B, 0xA260);
  1981.  
  1982. #if USES68KINLINES
  1983. #pragma parameter __D0 PBMakeFSSpecAsync(__A0)
  1984. #endif
  1985. extern pascal OSErr PBMakeFSSpecAsync(HParmBlkPtr paramBlock)
  1986.  TWOWORDINLINE(0x701B, 0xA660);
  1987. extern pascal void FInitQueue(void)
  1988.  ONEWORDINLINE(0xA016);
  1989. #if USESCODEFRAGMENTS
  1990. extern pascal QHdrPtr GetFSQHdr(void);
  1991. extern pascal QHdrPtr GetDrvQHdr(void);
  1992. extern pascal QHdrPtr GetVCBQHdr(void);
  1993. #else
  1994. #define GetFSQHdr() ((QHdrPtr) 0x0360)
  1995.  
  1996. #define GetDrvQHdr() ((QHdrPtr) 0x0308)
  1997.  
  1998. #define GetVCBQHdr() ((QHdrPtr) 0x0356)
  1999.  
  2000. #endif
  2001.  
  2002. extern pascal OSErr HGetVol(StringPtr volName, short *vRefNum, long *dirID);
  2003. extern pascal OSErr HSetVol(StringPtr volName, short vRefNum, long dirID);
  2004. extern pascal OSErr HOpen(short vRefNum, long dirID, ConstStr255Param fileName, char permission, short *refNum);
  2005. extern pascal OSErr HOpenDF(short vRefNum, long dirID, ConstStr255Param fileName, char permission, short *refNum);
  2006. extern pascal OSErr HOpenRF(short vRefNum, long dirID, ConstStr255Param fileName, char permission, short *refNum);
  2007. extern pascal OSErr AllocContig(short refNum, long *count);
  2008. extern pascal OSErr HCreate(short vRefNum, long dirID, ConstStr255Param fileName, OSType creator, OSType fileType);
  2009. extern pascal OSErr DirCreate(short vRefNum, long parentDirID, ConstStr255Param directoryName, long *createdDirID);
  2010. extern pascal OSErr HDelete(short vRefNum, long dirID, ConstStr255Param fileName);
  2011. extern pascal OSErr HGetFInfo(short vRefNum, long dirID, ConstStr255Param fileName, FInfo *fndrInfo);
  2012. extern pascal OSErr HSetFInfo(short vRefNum, long dirID, ConstStr255Param fileName, const FInfo *fndrInfo);
  2013. extern pascal OSErr HSetFLock(short vRefNum, long dirID, ConstStr255Param fileName);
  2014. extern pascal OSErr HRstFLock(short vRefNum, long dirID, ConstStr255Param fileName);
  2015. extern pascal OSErr HRename(short vRefNum, long dirID, ConstStr255Param oldName, ConstStr255Param newName);
  2016. extern pascal OSErr CatMove(short vRefNum, long dirID, ConstStr255Param oldName, long newDirID, ConstStr255Param newName);
  2017. extern pascal OSErr OpenWD(short vRefNum, long dirID, long procID, short *wdRefNum);
  2018. extern pascal OSErr CloseWD(short wdRefNum);
  2019. extern pascal OSErr GetWDInfo(short wdRefNum, short *vRefNum, long *dirID, long *procID);
  2020.  
  2021. /*  shared environment  */
  2022.  
  2023. #define PBHGetVolParms(pb, async) ((async) ? PBHGetVolParmsAsync(pb) : PBHGetVolParmsSync(pb))
  2024.  
  2025.  
  2026. #if USES68KINLINES
  2027. #pragma parameter __D0 PBHGetVolParmsSync(__A0)
  2028. #endif
  2029. extern pascal OSErr PBHGetVolParmsSync(HParmBlkPtr paramBlock)
  2030.  TWOWORDINLINE(0x7030, 0xA260);
  2031.  
  2032. #if USES68KINLINES
  2033. #pragma parameter __D0 PBHGetVolParmsAsync(__A0)
  2034. #endif
  2035. extern pascal OSErr PBHGetVolParmsAsync(HParmBlkPtr paramBlock)
  2036.  TWOWORDINLINE(0x7030, 0xA660);
  2037. #define PBHGetLogInInfo(pb, async) ((async) ? PBHGetLogInInfoAsync(pb) : PBHGetLogInInfoSync(pb))
  2038.  
  2039.  
  2040. #if USES68KINLINES
  2041. #pragma parameter __D0 PBHGetLogInInfoSync(__A0)
  2042. #endif
  2043. extern pascal OSErr PBHGetLogInInfoSync(HParmBlkPtr paramBlock)
  2044.  TWOWORDINLINE(0x7031, 0xA260);
  2045.  
  2046. #if USES68KINLINES
  2047. #pragma parameter __D0 PBHGetLogInInfoAsync(__A0)
  2048. #endif
  2049. extern pascal OSErr PBHGetLogInInfoAsync(HParmBlkPtr paramBlock)
  2050.  TWOWORDINLINE(0x7031, 0xA660);
  2051. #define PBHGetDirAccess(pb, async) ((async) ? PBHGetDirAccessAsync(pb) : PBHGetDirAccessSync(pb))
  2052.  
  2053.  
  2054. #if USES68KINLINES
  2055. #pragma parameter __D0 PBHGetDirAccessSync(__A0)
  2056. #endif
  2057. extern pascal OSErr PBHGetDirAccessSync(HParmBlkPtr paramBlock)
  2058.  TWOWORDINLINE(0x7032, 0xA260);
  2059.  
  2060. #if USES68KINLINES
  2061. #pragma parameter __D0 PBHGetDirAccessAsync(__A0)
  2062. #endif
  2063. extern pascal OSErr PBHGetDirAccessAsync(HParmBlkPtr paramBlock)
  2064.  TWOWORDINLINE(0x7032, 0xA660);
  2065. #define PBHSetDirAccess(pb, async) ((async) ? PBHSetDirAccessAsync(pb) : PBHSetDirAccessSync(pb))
  2066.  
  2067.  
  2068. #if USES68KINLINES
  2069. #pragma parameter __D0 PBHSetDirAccessSync(__A0)
  2070. #endif
  2071. extern pascal OSErr PBHSetDirAccessSync(HParmBlkPtr paramBlock)
  2072.  TWOWORDINLINE(0x7033, 0xA260);
  2073.  
  2074. #if USES68KINLINES
  2075. #pragma parameter __D0 PBHSetDirAccessAsync(__A0)
  2076. #endif
  2077. extern pascal OSErr PBHSetDirAccessAsync(HParmBlkPtr paramBlock)
  2078.  TWOWORDINLINE(0x7033, 0xA660);
  2079. #define PBHMapID(pb, async) ((async) ? PBHMapIDAsync(pb) : PBHMapIDSync(pb))
  2080.  
  2081.  
  2082. #if USES68KINLINES
  2083. #pragma parameter __D0 PBHMapIDSync(__A0)
  2084. #endif
  2085. extern pascal OSErr PBHMapIDSync(HParmBlkPtr paramBlock)
  2086.  TWOWORDINLINE(0x7034, 0xA260);
  2087.  
  2088. #if USES68KINLINES
  2089. #pragma parameter __D0 PBHMapIDAsync(__A0)
  2090. #endif
  2091. extern pascal OSErr PBHMapIDAsync(HParmBlkPtr paramBlock)
  2092.  TWOWORDINLINE(0x7034, 0xA660);
  2093. #define PBHMapName(pb, async) ((async) ? PBHMapNameAsync(pb) : PBHMapNameSync(pb))
  2094.  
  2095.  
  2096. #if USES68KINLINES
  2097. #pragma parameter __D0 PBHMapNameSync(__A0)
  2098. #endif
  2099. extern pascal OSErr PBHMapNameSync(HParmBlkPtr paramBlock)
  2100.  TWOWORDINLINE(0x7035, 0xA260);
  2101.  
  2102. #if USES68KINLINES
  2103. #pragma parameter __D0 PBHMapNameAsync(__A0)
  2104. #endif
  2105. extern pascal OSErr PBHMapNameAsync(HParmBlkPtr paramBlock)
  2106.  TWOWORDINLINE(0x7035, 0xA660);
  2107. #define PBHCopyFile(pb, async) ((async) ? PBHCopyFileAsync(pb) : PBHCopyFileSync(pb))
  2108.  
  2109.  
  2110. #if USES68KINLINES
  2111. #pragma parameter __D0 PBHCopyFileSync(__A0)
  2112. #endif
  2113. extern pascal OSErr PBHCopyFileSync(HParmBlkPtr paramBlock)
  2114.  TWOWORDINLINE(0x7036, 0xA260);
  2115.  
  2116. #if USES68KINLINES
  2117. #pragma parameter __D0 PBHCopyFileAsync(__A0)
  2118. #endif
  2119. extern pascal OSErr PBHCopyFileAsync(HParmBlkPtr paramBlock)
  2120.  TWOWORDINLINE(0x7036, 0xA660);
  2121. #define PBHMoveRename(pb, async) ((async) ? PBHMoveRenameAsync(pb) : PBHMoveRenameSync(pb))
  2122.  
  2123.  
  2124. #if USES68KINLINES
  2125. #pragma parameter __D0 PBHMoveRenameSync(__A0)
  2126. #endif
  2127. extern pascal OSErr PBHMoveRenameSync(HParmBlkPtr paramBlock)
  2128.  TWOWORDINLINE(0x7037, 0xA260);
  2129.  
  2130. #if USES68KINLINES
  2131. #pragma parameter __D0 PBHMoveRenameAsync(__A0)
  2132. #endif
  2133. extern pascal OSErr PBHMoveRenameAsync(HParmBlkPtr paramBlock)
  2134.  TWOWORDINLINE(0x7037, 0xA660);
  2135. #define PBHOpenDeny(pb, async) ((async) ? PBHOpenDenyAsync(pb) : PBHOpenDenySync(pb))
  2136.  
  2137.  
  2138. #if USES68KINLINES
  2139. #pragma parameter __D0 PBHOpenDenySync(__A0)
  2140. #endif
  2141. extern pascal OSErr PBHOpenDenySync(HParmBlkPtr paramBlock)
  2142.  TWOWORDINLINE(0x7038, 0xA260);
  2143.  
  2144. #if USES68KINLINES
  2145. #pragma parameter __D0 PBHOpenDenyAsync(__A0)
  2146. #endif
  2147. extern pascal OSErr PBHOpenDenyAsync(HParmBlkPtr paramBlock)
  2148.  TWOWORDINLINE(0x7038, 0xA660);
  2149. #define PBHOpenRFDeny(pb, async) ((async) ? PBHOpenRFDenyAsync(pb) : PBHOpenRFDenySync(pb))
  2150.  
  2151.  
  2152. #if USES68KINLINES
  2153. #pragma parameter __D0 PBHOpenRFDenySync(__A0)
  2154. #endif
  2155. extern pascal OSErr PBHOpenRFDenySync(HParmBlkPtr paramBlock)
  2156.  TWOWORDINLINE(0x7039, 0xA260);
  2157.  
  2158. #if USES68KINLINES
  2159. #pragma parameter __D0 PBHOpenRFDenyAsync(__A0)
  2160. #endif
  2161. extern pascal OSErr PBHOpenRFDenyAsync(HParmBlkPtr paramBlock)
  2162.  TWOWORDINLINE(0x7039, 0xA660);
  2163. #define PBExchangeFiles(pb, async) ((async) ? PBExchangeFilesAsync(pb) : PBExchangeFilesSync(pb))
  2164.  
  2165.  
  2166. #if USES68KINLINES
  2167. #pragma parameter __D0 PBExchangeFilesSync(__A0)
  2168. #endif
  2169. extern pascal OSErr PBExchangeFilesSync(HParmBlkPtr paramBlock)
  2170.  TWOWORDINLINE(0x7017, 0xA260);
  2171.  
  2172. #if USES68KINLINES
  2173. #pragma parameter __D0 PBExchangeFilesAsync(__A0)
  2174. #endif
  2175. extern pascal OSErr PBExchangeFilesAsync(HParmBlkPtr paramBlock)
  2176.  TWOWORDINLINE(0x7017, 0xA660);
  2177. #define PBCreateFileIDRef(pb, async) ((async) ? PBCreateFileIDRefAsync(pb) : PBCreateFileIDRefSync(pb))
  2178.  
  2179.  
  2180. #if USES68KINLINES
  2181. #pragma parameter __D0 PBCreateFileIDRefSync(__A0)
  2182. #endif
  2183. extern pascal OSErr PBCreateFileIDRefSync(HParmBlkPtr paramBlock)
  2184.  TWOWORDINLINE(0x7014, 0xA260);
  2185.  
  2186. #if USES68KINLINES
  2187. #pragma parameter __D0 PBCreateFileIDRefAsync(__A0)
  2188. #endif
  2189. extern pascal OSErr PBCreateFileIDRefAsync(HParmBlkPtr paramBlock)
  2190.  TWOWORDINLINE(0x7014, 0xA660);
  2191. #define PBResolveFileIDRef(pb, async) ((async) ? PBResolveFileIDRefAsync(pb) : PBResolveFileIDRefSync(pb))
  2192.  
  2193.  
  2194. #if USES68KINLINES
  2195. #pragma parameter __D0 PBResolveFileIDRefSync(__A0)
  2196. #endif
  2197. extern pascal OSErr PBResolveFileIDRefSync(HParmBlkPtr paramBlock)
  2198.  TWOWORDINLINE(0x7016, 0xA260);
  2199.  
  2200. #if USES68KINLINES
  2201. #pragma parameter __D0 PBResolveFileIDRefAsync(__A0)
  2202. #endif
  2203. extern pascal OSErr PBResolveFileIDRefAsync(HParmBlkPtr paramBlock)
  2204.  TWOWORDINLINE(0x7016, 0xA660);
  2205. #define PBDeleteFileIDRef(pb, async) ((async) ? PBDeleteFileIDRefAsync(pb) : PBDeleteFileIDRefSync(pb))
  2206.  
  2207.  
  2208. #if USES68KINLINES
  2209. #pragma parameter __D0 PBDeleteFileIDRefSync(__A0)
  2210. #endif
  2211. extern pascal OSErr PBDeleteFileIDRefSync(HParmBlkPtr paramBlock)
  2212.  TWOWORDINLINE(0x7015, 0xA260);
  2213.  
  2214. #if USES68KINLINES
  2215. #pragma parameter __D0 PBDeleteFileIDRefAsync(__A0)
  2216. #endif
  2217. extern pascal OSErr PBDeleteFileIDRefAsync(HParmBlkPtr paramBlock)
  2218.  TWOWORDINLINE(0x7015, 0xA660);
  2219. #define PBGetForeignPrivs(pb, async) ((async) ? PBGetForeignPrivsAsync(pb) : PBGetForeignPrivsSync(pb))
  2220.  
  2221.  
  2222. #if USES68KINLINES
  2223. #pragma parameter __D0 PBGetForeignPrivsSync(__A0)
  2224. #endif
  2225. extern pascal OSErr PBGetForeignPrivsSync(HParmBlkPtr paramBlock)
  2226.  TWOWORDINLINE(0x7060, 0xA260);
  2227.  
  2228. #if USES68KINLINES
  2229. #pragma parameter __D0 PBGetForeignPrivsAsync(__A0)
  2230. #endif
  2231. extern pascal OSErr PBGetForeignPrivsAsync(HParmBlkPtr paramBlock)
  2232.  TWOWORDINLINE(0x7060, 0xA660);
  2233. #define PBSetForeignPrivs(pb, async) ((async) ? PBSetForeignPrivsAsync(pb) : PBSetForeignPrivsSync(pb))
  2234.  
  2235.  
  2236. #if USES68KINLINES
  2237. #pragma parameter __D0 PBSetForeignPrivsSync(__A0)
  2238. #endif
  2239. extern pascal OSErr PBSetForeignPrivsSync(HParmBlkPtr paramBlock)
  2240.  TWOWORDINLINE(0x7061, 0xA260);
  2241.  
  2242. #if USES68KINLINES
  2243. #pragma parameter __D0 PBSetForeignPrivsAsync(__A0)
  2244. #endif
  2245. extern pascal OSErr PBSetForeignPrivsAsync(HParmBlkPtr paramBlock)
  2246.  TWOWORDINLINE(0x7061, 0xA660);
  2247.  
  2248. /*  Desktop Manager  */
  2249.  
  2250.  
  2251. #if USES68KINLINES
  2252. #pragma parameter __D0 PBDTGetPath(__A0)
  2253. #endif
  2254. extern pascal OSErr PBDTGetPath(DTPBPtr paramBlock)
  2255.  TWOWORDINLINE(0x7020, 0xA260);
  2256.  
  2257. #if USES68KINLINES
  2258. #pragma parameter __D0 PBDTCloseDown(__A0)
  2259. #endif
  2260. extern pascal OSErr PBDTCloseDown(DTPBPtr paramBlock)
  2261.  TWOWORDINLINE(0x7021, 0xA260);
  2262. #define PBDTAddIcon(pb, async) ((async) ? PBDTAddIconAsync(pb) : PBDTAddIconSync(pb))
  2263.  
  2264.  
  2265. #if USES68KINLINES
  2266. #pragma parameter __D0 PBDTAddIconSync(__A0)
  2267. #endif
  2268. extern pascal OSErr PBDTAddIconSync(DTPBPtr paramBlock)
  2269.  TWOWORDINLINE(0x7022, 0xA260);
  2270.  
  2271. #if USES68KINLINES
  2272. #pragma parameter __D0 PBDTAddIconAsync(__A0)
  2273. #endif
  2274. extern pascal OSErr PBDTAddIconAsync(DTPBPtr paramBlock)
  2275.  TWOWORDINLINE(0x7022, 0xA660);
  2276. #define PBDTGetIcon(pb, async) ((async) ? PBDTGetIconAsync(pb) : PBDTGetIconSync(pb))
  2277.  
  2278.  
  2279. #if USES68KINLINES
  2280. #pragma parameter __D0 PBDTGetIconSync(__A0)
  2281. #endif
  2282. extern pascal OSErr PBDTGetIconSync(DTPBPtr paramBlock)
  2283.  TWOWORDINLINE(0x7023, 0xA260);
  2284.  
  2285. #if USES68KINLINES
  2286. #pragma parameter __D0 PBDTGetIconAsync(__A0)
  2287. #endif
  2288. extern pascal OSErr PBDTGetIconAsync(DTPBPtr paramBlock)
  2289.  TWOWORDINLINE(0x7023, 0xA660);
  2290. #define PBDTGetIconInfo(pb, async) ((async) ? PBDTGetIconInfoAsync(pb) : PBDTGetIconInfoSync(pb))
  2291.  
  2292.  
  2293. #if USES68KINLINES
  2294. #pragma parameter __D0 PBDTGetIconInfoSync(__A0)
  2295. #endif
  2296. extern pascal OSErr PBDTGetIconInfoSync(DTPBPtr paramBlock)
  2297.  TWOWORDINLINE(0x7024, 0xA260);
  2298.  
  2299. #if USES68KINLINES
  2300. #pragma parameter __D0 PBDTGetIconInfoAsync(__A0)
  2301. #endif
  2302. extern pascal OSErr PBDTGetIconInfoAsync(DTPBPtr paramBlock)
  2303.  TWOWORDINLINE(0x7024, 0xA660);
  2304. #define PBDTAddAPPL(pb, async) ((async) ? PBDTAddAPPLAsync(pb) : PBDTAddAPPLSync(pb))
  2305.  
  2306.  
  2307. #if USES68KINLINES
  2308. #pragma parameter __D0 PBDTAddAPPLSync(__A0)
  2309. #endif
  2310. extern pascal OSErr PBDTAddAPPLSync(DTPBPtr paramBlock)
  2311.  TWOWORDINLINE(0x7025, 0xA260);
  2312.  
  2313. #if USES68KINLINES
  2314. #pragma parameter __D0 PBDTAddAPPLAsync(__A0)
  2315. #endif
  2316. extern pascal OSErr PBDTAddAPPLAsync(DTPBPtr paramBlock)
  2317.  TWOWORDINLINE(0x7025, 0xA660);
  2318. #define PBDTRemoveAPPL(pb, async) ((async) ? PBDTRemoveAPPLAsync(pb) : PBDTRemoveAPPLSync(pb))
  2319.  
  2320.  
  2321. #if USES68KINLINES
  2322. #pragma parameter __D0 PBDTRemoveAPPLSync(__A0)
  2323. #endif
  2324. extern pascal OSErr PBDTRemoveAPPLSync(DTPBPtr paramBlock)
  2325.  TWOWORDINLINE(0x7026, 0xA260);
  2326.  
  2327. #if USES68KINLINES
  2328. #pragma parameter __D0 PBDTRemoveAPPLAsync(__A0)
  2329. #endif
  2330. extern pascal OSErr PBDTRemoveAPPLAsync(DTPBPtr paramBlock)
  2331.  TWOWORDINLINE(0x7026, 0xA660);
  2332. #define PBDTGetAPPL(pb, async) ((async) ? PBDTGetAPPLAsync(pb) : PBDTGetAPPLSync(pb))
  2333.  
  2334.  
  2335. #if USES68KINLINES
  2336. #pragma parameter __D0 PBDTGetAPPLSync(__A0)
  2337. #endif
  2338. extern pascal OSErr PBDTGetAPPLSync(DTPBPtr paramBlock)
  2339.  TWOWORDINLINE(0x7027, 0xA260);
  2340.  
  2341. #if USES68KINLINES
  2342. #pragma parameter __D0 PBDTGetAPPLAsync(__A0)
  2343. #endif
  2344. extern pascal OSErr PBDTGetAPPLAsync(DTPBPtr paramBlock)
  2345.  TWOWORDINLINE(0x7027, 0xA660);
  2346. #define PBDTSetComment(pb, async) ((async) ? PBDTSetCommentAsync(pb) : PBDTSetCommentSync(pb))
  2347.  
  2348.  
  2349. #if USES68KINLINES
  2350. #pragma parameter __D0 PBDTSetCommentSync(__A0)
  2351. #endif
  2352. extern pascal OSErr PBDTSetCommentSync(DTPBPtr paramBlock)
  2353.  TWOWORDINLINE(0x7028, 0xA260);
  2354.  
  2355. #if USES68KINLINES
  2356. #pragma parameter __D0 PBDTSetCommentAsync(__A0)
  2357. #endif
  2358. extern pascal OSErr PBDTSetCommentAsync(DTPBPtr paramBlock)
  2359.  TWOWORDINLINE(0x7028, 0xA660);
  2360. #define PBDTRemoveComment(pb, async) ((async) ? PBDTRemoveCommentAsync(pb) : PBDTRemoveCommentSync(pb))
  2361.  
  2362.  
  2363. #if USES68KINLINES
  2364. #pragma parameter __D0 PBDTRemoveCommentSync(__A0)
  2365. #endif
  2366. extern pascal OSErr PBDTRemoveCommentSync(DTPBPtr paramBlock)
  2367.  TWOWORDINLINE(0x7029, 0xA260);
  2368.  
  2369. #if USES68KINLINES
  2370. #pragma parameter __D0 PBDTRemoveCommentAsync(__A0)
  2371. #endif
  2372. extern pascal OSErr PBDTRemoveCommentAsync(DTPBPtr paramBlock)
  2373.  TWOWORDINLINE(0x7029, 0xA660);
  2374. #define PBDTGetComment(pb, async) ((async) ? PBDTGetCommentAsync(pb) : PBDTGetCommentSync(pb))
  2375.  
  2376.  
  2377. #if USES68KINLINES
  2378. #pragma parameter __D0 PBDTGetCommentSync(__A0)
  2379. #endif
  2380. extern pascal OSErr PBDTGetCommentSync(DTPBPtr paramBlock)
  2381.  TWOWORDINLINE(0x702A, 0xA260);
  2382.  
  2383. #if USES68KINLINES
  2384. #pragma parameter __D0 PBDTGetCommentAsync(__A0)
  2385. #endif
  2386. extern pascal OSErr PBDTGetCommentAsync(DTPBPtr paramBlock)
  2387.  TWOWORDINLINE(0x702A, 0xA660);
  2388. #define PBDTFlush(pb, async) ((async) ? PBDTFlushAsync(pb) : PBDTFlushSync(pb))
  2389.  
  2390.  
  2391. #if USES68KINLINES
  2392. #pragma parameter __D0 PBDTFlushSync(__A0)
  2393. #endif
  2394. extern pascal OSErr PBDTFlushSync(DTPBPtr paramBlock)
  2395.  TWOWORDINLINE(0x702B, 0xA260);
  2396.  
  2397. #if USES68KINLINES
  2398. #pragma parameter __D0 PBDTFlushAsync(__A0)
  2399. #endif
  2400. extern pascal OSErr PBDTFlushAsync(DTPBPtr paramBlock)
  2401.  TWOWORDINLINE(0x702B, 0xA660);
  2402. #define PBDTReset(pb, async) ((async) ? PBDTResetAsync(pb) : PBDTResetSync(pb))
  2403.  
  2404.  
  2405. #if USES68KINLINES
  2406. #pragma parameter __D0 PBDTResetSync(__A0)
  2407. #endif
  2408. extern pascal OSErr PBDTResetSync(DTPBPtr paramBlock)
  2409.  TWOWORDINLINE(0x702C, 0xA260);
  2410.  
  2411. #if USES68KINLINES
  2412. #pragma parameter __D0 PBDTResetAsync(__A0)
  2413. #endif
  2414. extern pascal OSErr PBDTResetAsync(DTPBPtr paramBlock)
  2415.  TWOWORDINLINE(0x702C, 0xA660);
  2416. #define PBDTGetInfo(pb, async) ((async) ? PBDTGetInfoAsync(pb) : PBDTGetInfoSync(pb))
  2417.  
  2418.  
  2419. #if USES68KINLINES
  2420. #pragma parameter __D0 PBDTGetInfoSync(__A0)
  2421. #endif
  2422. extern pascal OSErr PBDTGetInfoSync(DTPBPtr paramBlock)
  2423.  TWOWORDINLINE(0x702D, 0xA260);
  2424.  
  2425. #if USES68KINLINES
  2426. #pragma parameter __D0 PBDTGetInfoAsync(__A0)
  2427. #endif
  2428. extern pascal OSErr PBDTGetInfoAsync(DTPBPtr paramBlock)
  2429.  TWOWORDINLINE(0x702D, 0xA660);
  2430.  
  2431. #if USES68KINLINES
  2432. #pragma parameter __D0 PBDTOpenInform(__A0)
  2433. #endif
  2434. extern pascal OSErr PBDTOpenInform(DTPBPtr paramBlock)
  2435.  TWOWORDINLINE(0x702E, 0xA060);
  2436. #define PBDTDelete(pb, async) ((async) ? PBDTDeleteAsync(pb) : PBDTDeleteSync(pb))
  2437.  
  2438.  
  2439. #if USES68KINLINES
  2440. #pragma parameter __D0 PBDTDeleteSync(__A0)
  2441. #endif
  2442. extern pascal OSErr PBDTDeleteSync(DTPBPtr paramBlock)
  2443.  TWOWORDINLINE(0x702F, 0xA060);
  2444.  
  2445. #if USES68KINLINES
  2446. #pragma parameter __D0 PBDTDeleteAsync(__A0)
  2447. #endif
  2448. extern pascal OSErr PBDTDeleteAsync(DTPBPtr paramBlock)
  2449.  TWOWORDINLINE(0x702F, 0xA460);
  2450.  
  2451. /*  VolumeMount traps  */
  2452.  
  2453.  
  2454. #if USES68KINLINES
  2455. #pragma parameter __D0 PBGetVolMountInfoSize(__A0)
  2456. #endif
  2457. extern pascal OSErr PBGetVolMountInfoSize(ParmBlkPtr paramBlock)
  2458.  TWOWORDINLINE(0x703F, 0xA260);
  2459.  
  2460. #if USES68KINLINES
  2461. #pragma parameter __D0 PBGetVolMountInfo(__A0)
  2462. #endif
  2463. extern pascal OSErr PBGetVolMountInfo(ParmBlkPtr paramBlock)
  2464.  TWOWORDINLINE(0x7040, 0xA260);
  2465.  
  2466. #if USES68KINLINES
  2467. #pragma parameter __D0 PBVolumeMount(__A0)
  2468. #endif
  2469. extern pascal OSErr PBVolumeMount(ParmBlkPtr paramBlock)
  2470.  TWOWORDINLINE(0x7041, 0xA260);
  2471.  
  2472. /*  FSp traps  */
  2473.  
  2474. extern pascal OSErr FSMakeFSSpec(short vRefNum, long dirID, ConstStr255Param fileName, FSSpecPtr spec)
  2475.  THREEWORDINLINE(0x303C, 0x0001, 0xAA52);
  2476. extern pascal OSErr FSpOpenDF(const FSSpec *spec, char permission, short *refNum)
  2477.  THREEWORDINLINE(0x303C, 0x0002, 0xAA52);
  2478. extern pascal OSErr FSpOpenRF(const FSSpec *spec, char permission, short *refNum)
  2479.  THREEWORDINLINE(0x303C, 0x0003, 0xAA52);
  2480. extern pascal OSErr FSpCreate(const FSSpec *spec, OSType creator, OSType fileType, ScriptCode scriptTag)
  2481.  THREEWORDINLINE(0x303C, 0x0004, 0xAA52);
  2482. extern pascal OSErr FSpDirCreate(const FSSpec *spec, ScriptCode scriptTag, long *createdDirID)
  2483.  THREEWORDINLINE(0x303C, 0x0005, 0xAA52);
  2484. extern pascal OSErr FSpDelete(const FSSpec *spec)
  2485.  THREEWORDINLINE(0x303C, 0x0006, 0xAA52);
  2486. extern pascal OSErr FSpGetFInfo(const FSSpec *spec, FInfo *fndrInfo)
  2487.  THREEWORDINLINE(0x303C, 0x0007, 0xAA52);
  2488. extern pascal OSErr FSpSetFInfo(const FSSpec *spec, const FInfo *fndrInfo)
  2489.  THREEWORDINLINE(0x303C, 0x0008, 0xAA52);
  2490. extern pascal OSErr FSpSetFLock(const FSSpec *spec)
  2491.  THREEWORDINLINE(0x303C, 0x0009, 0xAA52);
  2492. extern pascal OSErr FSpRstFLock(const FSSpec *spec)
  2493.  THREEWORDINLINE(0x303C, 0x000A, 0xAA52);
  2494. extern pascal OSErr FSpRename(const FSSpec *spec, ConstStr255Param newName)
  2495.  THREEWORDINLINE(0x303C, 0x000B, 0xAA52);
  2496. extern pascal OSErr FSpCatMove(const FSSpec *source, const FSSpec *dest)
  2497.  THREEWORDINLINE(0x303C, 0x000C, 0xAA52);
  2498. extern pascal OSErr FSpExchangeFiles(const FSSpec *source, const FSSpec *dest)
  2499.  THREEWORDINLINE(0x303C, 0x000F, 0xAA52);
  2500.  
  2501. /*
  2502.     PBGetAltAccess and PBSetAltAccess are obsolete and will not be supported 
  2503.     on PowerPC. Equivalent functionality is provided by the routines 
  2504.     PBGetForeignPrivs and PBSetForeignPrivs.
  2505. */
  2506.  
  2507. #if defined(OBSOLETE) && !defined(powerc) && !defined(__powerc)
  2508. #define PBGetAltAccess(pb, async) ((async) ? PBGetAltAccessAsync(pb) : PBGetAltAccessSync(pb))
  2509.  
  2510.  
  2511. #if USES68KINLINES
  2512. #pragma parameter __D0 PBGetAltAccessSync(__A0)
  2513. #endif
  2514. extern pascal OSErr PBGetAltAccessSync(HParmBlkPtr paramBlock)
  2515.  TWOWORDINLINE(0x7060, 0xA060);
  2516.  
  2517. #if USES68KINLINES
  2518. #pragma parameter __D0 PBGetAltAccessAsync(__A0)
  2519. #endif
  2520. extern pascal OSErr PBGetAltAccessAsync(HParmBlkPtr paramBlock)
  2521.  TWOWORDINLINE(0x7060, 0xA460);
  2522. #define PBSetAltAccess(pb, async) ((async) ? PBSetAltAccessAsync(pb) : PBSetAltAccessSync(pb))
  2523.  
  2524.  
  2525. #if USES68KINLINES
  2526. #pragma parameter __D0 PBSetAltAccessSync(__A0)
  2527. #endif
  2528. extern pascal OSErr PBSetAltAccessSync(HParmBlkPtr paramBlock)
  2529.  TWOWORDINLINE(0x7061, 0xA060);
  2530.  
  2531. #if USES68KINLINES
  2532. #pragma parameter __D0 PBSetAltAccessAsync(__A0)
  2533. #endif
  2534. extern pascal OSErr PBSetAltAccessAsync(HParmBlkPtr paramBlock)
  2535.  TWOWORDINLINE(0x7061, 0xA460);
  2536. #endif
  2537.  
  2538.  
  2539. #if USES68KINLINES
  2540. #pragma parameter __D0 PBShareSync(__A0)
  2541. #endif
  2542. extern pascal OSErr PBShareSync(CMovePBPtr paramBlock)
  2543.  TWOWORDINLINE(0x7042, 0xA260);
  2544.  
  2545. #if USES68KINLINES
  2546. #pragma parameter __D0 PBShareAsync(__A0)
  2547. #endif
  2548. extern pascal OSErr PBShareAsync(CMovePBPtr paramBlock)
  2549.  TWOWORDINLINE(0x7042, 0xA660);
  2550.  
  2551. #if USES68KINLINES
  2552. #pragma parameter __D0 PBUnshareSync(__A0)
  2553. #endif
  2554. extern pascal OSErr PBUnshareSync(CMovePBPtr paramBlock)
  2555.  TWOWORDINLINE(0x7043, 0xA260);
  2556.  
  2557. #if USES68KINLINES
  2558. #pragma parameter __D0 PBUnshareAsync(__A0)
  2559. #endif
  2560. extern pascal OSErr PBUnshareAsync(CMovePBPtr paramBlock)
  2561.  TWOWORDINLINE(0x7043, 0xA660);
  2562.  
  2563. #if USES68KINLINES
  2564. #pragma parameter __D0 PBGetUGEntrySync(__A0)
  2565. #endif
  2566. extern pascal OSErr PBGetUGEntrySync(CMovePBPtr paramBlock)
  2567.  TWOWORDINLINE(0x7044, 0xA260);
  2568.  
  2569. #if USES68KINLINES
  2570. #pragma parameter __D0 PBGetUGEntryAsync(__A0)
  2571. #endif
  2572. extern pascal OSErr PBGetUGEntryAsync(CMovePBPtr paramBlock)
  2573.  TWOWORDINLINE(0x7044, 0xA660);
  2574. #ifdef __cplusplus
  2575. }
  2576. #endif
  2577.  
  2578. #endif
  2579.  
  2580.